-
- Downloads
Issue macaroons as opaque auth tokens
This just replaces random bytes with macaroons. The macaroons are not inspected by the client or server. In particular, they claim to have an expiry time, but nothing verifies that they have not expired. Follow-up commits will actually enforce the expiration, and allow for token refresh. See https://bit.ly/matrix-auth for more information
Showing
- synapse/auth/macaroons.py 0 additions, 0 deletionssynapse/auth/macaroons.py
- synapse/config/registration.py 4 additions, 0 deletionssynapse/config/registration.py
- synapse/handlers/register.py 13 additions, 6 deletionssynapse/handlers/register.py
- synapse/python_dependencies.py 1 addition, 0 deletionssynapse/python_dependencies.py
- tests/handlers/test_register.py 70 additions, 0 deletionstests/handlers/test_register.py
- tests/utils.py 2 additions, 0 deletionstests/utils.py
synapse/auth/macaroons.py
0 → 100644
tests/handlers/test_register.py
0 → 100644
Please register or sign in to comment