Commit graph

13 commits

Author SHA1 Message Date
Lars Kaiser
9dbd99a305
feat(matrix_member): support force join for local users
Requires synapse as homeserver.
2023-03-30 20:41:50 +02:00
Johanna Dorothea Reichmann
96751ecd1f
fix(tests/unit): do not attempt to call logout in check mode 2023-02-09 09:53:55 +01:00
Johanna Dorothea Reichmann
bf7f2328e9
fix: allow to call exit/fail from check-mode 2023-01-30 13:04:18 +01:00
Jadyn Emma Jaeger
537e65ef87
fix(modules/matrix): set access_token and device_id properties 2022-08-24 13:43:40 +02:00
Jan Christian Grünhage
141e747429
chore(plugins): format with black and add CI job for checking 2022-08-10 18:34:26 +02:00
Jan Christian Grünhage
71f289c1d0
fix(modules/matrix): fix regression in access token handling
52785ab768 refactored the login logic,
which, switching to nio's token login when being passed a token. The
token being passed is an *access* token though, not a *login* token, so
that fails and thereby breaks any tasks that use access tokens instead
of username/password for authenticating to matrix.

It also accidentally negated the logic on when to invalidate a token
upon logout, so that has been resolved as well.
2022-08-10 18:33:21 +02:00
Jan Christian Grünhage
45b4aa85b4
fix(matrix_token_login): fix regression in required module args
52785ab768 refactored required and
mutually exclusive module parameters and meanwhile dropped some
arguments required for our matrix_token_login module. The change
made sense for most of our modules, but the matrix_token_login as the
only one doesn't need token or password, but definitely needs a key.
2022-08-10 18:32:05 +02:00
Jadyn Emma Jaeger
ee56b991fa
fix(modules/matrix): Handle login / logout corrently 2022-08-01 12:01:57 +02:00
Jadyn Emma Jaeger
52785ab768
feat: Add ansible-test and refactor plugins 2022-07-29 10:50:14 +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
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
c076c1bba8
fix(AnsibleNioModule): typo - error_json has to be fail_json 2021-04-28 11:22:42 +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