Implement access token expiry (#5660)
Record how long an access token is valid for, and raise a soft-logout once it expires.
Showing
- changelog.d/5660.feature 1 addition, 0 deletionschangelog.d/5660.feature
- docs/sample_config.yaml 11 additions, 0 deletionsdocs/sample_config.yaml
- synapse/api/auth.py 12 additions, 0 deletionssynapse/api/auth.py
- synapse/api/errors.py 7 additions, 1 deletionsynapse/api/errors.py
- synapse/config/registration.py 16 additions, 0 deletionssynapse/config/registration.py
- synapse/handlers/auth.py 14 additions, 3 deletionssynapse/handlers/auth.py
- synapse/handlers/register.py 24 additions, 11 deletionssynapse/handlers/register.py
- synapse/storage/registration.py 14 additions, 5 deletionssynapse/storage/registration.py
- synapse/storage/schema/delta/55/access_token_expiry.sql 18 additions, 0 deletionssynapse/storage/schema/delta/55/access_token_expiry.sql
- tests/api/test_auth.py 4 additions, 2 deletionstests/api/test_auth.py
- tests/handlers/test_auth.py 15 additions, 5 deletionstests/handlers/test_auth.py
- tests/handlers/test_register.py 4 additions, 1 deletiontests/handlers/test_register.py
- tests/rest/client/v1/test_login.py 108 additions, 0 deletionstests/rest/client/v1/test_login.py
- tests/storage/test_registration.py 5 additions, 3 deletionstests/storage/test_registration.py
Loading
Please register or sign in to comment