Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace make_awaitable with AsyncMock (#16179) | Patrick Cloke | 2023-08-24 | 1 | -14/+13 |
| | | | | Python 3.8 provides a native AsyncMock, we can replace the homegrown version we have. | ||||
* | Save login tokens in database (#13844) | Quentin Gliech | 2022-10-26 | 1 | -57/+78 |
| | | | | | | | | | | | * Save login tokens in database Signed-off-by: Quentin Gliech <quenting@element.io> * Add upgrade notes * Track login token reuse in a Prometheus metric Signed-off-by: Quentin Gliech <quenting@element.io> | ||||
* | Decouple `synapse.api.auth_blocking.AuthBlocking` from ↵ | Quentin Gliech | 2022-06-14 | 1 | -1/+1 |
| | | | | `synapse.api.auth.Auth`. (#13021) | ||||
* | Add some type hints to the tests.handlers module. (#12207) | Patrick Cloke | 2022-03-11 | 1 | -15/+19 |
| | |||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -6/+6 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Save the OIDC session ID (sid) with the device on login (#11482) | Quentin Gliech | 2021-12-06 | 1 | -3/+3 |
| | | | As a step towards allowing back-channel logout for OIDC. | ||||
* | Rename `get_access_token_for_user_id` method to ↵ | reivilibre | 2021-11-17 | 1 | -5/+5 |
| | | | | `create_access_token_for_user_id` (#11369) | ||||
* | Use direct references for configuration variables (part 4). (#10893) | Patrick Cloke | 2021-09-23 | 1 | -1/+1 |
| | |||||
* | Change the format of access tokens away from macaroons (#5588) | Richard van der Hoff | 2021-05-12 | 1 | -20/+23 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 1 | -1/+1 |
| | |||||
* | Record the SSO Auth Provider in the login token (#9510) | Richard van der Hoff | 2021-03-04 | 1 | -20/+29 |
| | | | This great big stack of commits is a a whole load of hoop-jumping to make it easier to store additional values in login tokens, and then to actually store the SSO Identity Provider in the login token. (Making use of that data will follow in a subsequent PR.) | ||||
* | Convert some test cases to use HomeserverTestCase. (#9377) | Patrick Cloke | 2021-02-11 | 1 | -79/+54 |
| | | | | This has the side-effect of being able to remove use of `inlineCallbacks` in the test-cases for cleaner tracebacks. | ||||
* | Simplify the way the `HomeServer` object caches its internal attributes. ↵ | Jonathan de Jong | 2020-11-30 | 1 | -3/+3 |
| | | | | | (#8565) Changes `@cache_in_self` to use underscore-prefixed attributes. | ||||
* | Remove the deprecated Handlers object (#8494) | Patrick Cloke | 2020-10-09 | 1 | -9/+2 |
| | | | All handlers now available via get_*_handler() methods on the HomeServer. | ||||
* | Allow for make_awaitable's return value to be re-used. (#8261) | Patrick Cloke | 2020-09-08 | 1 | -10/+10 |
| | |||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Convert stats and related calls to async/await (#8192) | Patrick Cloke | 2020-08-27 | 1 | -10/+11 |
| | |||||
* | Stop Auth methods from polling the config on every req. (#7420) | Andrew Morgan | 2020-05-06 | 1 | -9/+14 |
| | |||||
* | Convert auth handler to async/await (#7261) | Patrick Cloke | 2020-04-15 | 1 | -28/+52 |
| | |||||
* | Implement access token expiry (#5660) | Richard van der Hoff | 2019-07-12 | 1 | -5/+15 |
| | | | | Record how long an access token is valid for, and raise a soft-logout once it expires. | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -5/+5 |
| | |||||
* | add new error type ResourceLimit | Neil Johnson | 2018-08-16 | 1 | -5/+5 |
| | |||||
* | fix off by 1 errors | Neil Johnson | 2018-08-14 | 1 | -1/+0 |
| | |||||
* | fix off by 1s on mau | Neil Johnson | 2018-08-14 | 1 | -1/+38 |
| | |||||
* | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -1/+1 |
| | |||||
* | Run black. | black | 2018-08-10 | 1 | -12/+4 |
| | |||||
* | do mau checks based on monthly_active_users table | Neil Johnson | 2018-08-02 | 1 | -4/+4 |
| | |||||
* | fix test for py3 | Neil Johnson | 2018-08-01 | 1 | -0/+4 |
| | |||||
* | make count_monthly_users async synapse/handlers/auth.py | Neil Johnson | 2018-08-01 | 1 | -17/+22 |
| | |||||
* | coding style | Neil Johnson | 2018-07-31 | 1 | -2/+2 |
| | |||||
* | limit register and sign in on number of monthly users | Neil Johnson | 2018-07-30 | 1 | -1/+48 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -0/+2 |
| | |||||
* | Fix email push in pusher worker | Erik Johnston | 2017-02-02 | 1 | -7/+5 |
| | | | | | | This was broken when device list updates were implemented, as Mailer could no longer instantiate an AuthHandler due to a dependency on federation sending. | ||||
* | Stop putting a time caveat on access tokens | Richard van der Hoff | 2016-11-29 | 1 | -3/+3 |
| | | | | | | | | The 'time' caveat on the access tokens was something of a lie, since we weren't enforcing it; more pertinently its presence stops us ever adding useful time caveats. Let's move in the right direction by not lying in our caveats. | ||||
* | PEP8 | Richard van der Hoff | 2016-08-08 | 1 | -0/+1 |
| | |||||
* | Fix login with m.login.token | Richard van der Hoff | 2016-08-08 | 1 | -4/+49 |
| | | | | | login with token (as used by CAS auth) was broken by 067596d, such that it always returned a 401. | ||||
* | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 1 | -1/+0 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Move token generation to auth handler | Daniel Wagner-Hall | 2015-08-20 | 1 | -0/+70 |
I prefer the auth handler to worry about all auth, and register to call into it as needed, than to smatter auth logic between the two. |