Commit graph

13 commits

Author SHA1 Message Date
Jan Christian Grünhage
063db8954a
fix(matrix_token_login): improve handling of the admin flag
This fixes the data type of the admin flag, which was previously a
string. Now it's a bool. Additionally, if the admin flag is omitted,
it's now also ommitted in the JWT sent to the server, so that existing
admin status isn't revoked by a call which doesn't include it.
2022-05-05 10:57:28 +02:00
Jan Christian Grünhage
c318acccbd feat(matrix_token_login): add module for jwt token based logins 2022-04-11 23:04:45 +02:00
Jadyn Emma Jaeger
14752e23c7
fix(matrix-uia-login): pick correct stage when multiple stages are available.
ref: https://gitlab.com/famedly/company/devops/collections/matrix/-/issues/18
2022-01-20 11:28:42 +01:00
Jadyn Emma Jaeger
7d3f135397
feat(synapse_ratelimit): add initial module
ref https://gitlab.com/famedly/ansible/collections/local/-/issues/71
2021-06-02 13:25:25 +02:00
Jadyn Emma Jaeger
0a4af363d3
refactor(modules): add matrix_utils.AnsibleNioModule helper class, edit all modules accordingly
Matrix Login can be performed with username/password or token from each module.
`matrix_[uia]_login` and `matrix_logout` is only needed, longer operations are wanted.
modules called with username/password will logout automatically.
The login/logout process is handled by the helper class (except matrix_uia_login).
2021-04-19 10:14:49 +02:00
Jan Christian Grünhage
fc9f0733d4
chore: remove trailing whitespace 2021-01-22 21:07:31 +01:00
transcaffeine
8f7924cb32
feat(modules): add uia-based matrix login module
Test the module with: `PASSWORD=abc echo '{"ANSIBLE_MODULE_ARGS": {"hs_url": "https://test-sp-gen-1.famedly.de","user_id": "admin","password": "$PASSWORD"}}' | python ansible_collections/famedly/matrix/plugins/modules/matrix_uia_login.py`
2020-12-10 12:43:01 +01:00
Jan Christian Grünhage
5af149d0e8 feat(modules): add synapse_register module
This module uses synapse's admin API to register users. It requires the
registration shared secret from synapse's config, and allows creating
admin users too.
2020-10-09 17:35:06 +02:00
Jan Christian Grünhage
31198df454 docs(modules): improve module documentation 2020-10-03 03:02:10 +02:00
Jan Christian Grünhage
e6bd06524d refactor(modules): fix lots of pylint warnings 2020-10-02 20:34:15 +02:00
Johanna Dorothea Reichmann
12f01fc2a7 feat(modules): add matrix_member ansible module
This module can manage matrix membership in a given room by inviting, kicking or
banning a list specified users.

With the exclusive=True flag, it can be used to ensure that a given list of
members is in a room (and no one else). For this module, users invited into a
room count as members, as they have permissions to join the room.

Co-authored-by: Jan Christian Grünhage <jan.christian@gruenhage.xyz>
2020-10-02 19:19:45 +02:00
Jan Christian Grünhage
40510a6d02 fix(synapse): fix location of signing key module 2020-08-02 10:28:28 +02:00
Jan Christian Grünhage
b2b1511e1d chore(git): merge roles/modules into collection 2020-08-01 19:29:25 +02:00