Modify auth.get_user_by_req for authing appservices directly.
Add logic to map the appservice token to the autogenned appservice user ID. Add unit tests for all forms of get_user_by_req (user/appservice, valid/bad/missing tokens)
Showing
- synapse/api/auth.py 16 additions, 18 deletionssynapse/api/auth.py
- synapse/storage/appservice.py 3 additions, 1 deletionsynapse/storage/appservice.py
- tests/api/test_auth.py 139 additions, 0 deletionstests/api/test_auth.py
- tests/rest/client/v1/test_presence.py 3 additions, 0 deletionstests/rest/client/v1/test_presence.py
- tests/rest/client/v2_alpha/__init__.py 3 additions, 1 deletiontests/rest/client/v2_alpha/__init__.py
Loading
Please register or sign in to comment