summary refs log tree commit diff
path: root/synapse/api/auth_blocking.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Factor out an `is_mine_server_name` method (#15542)Sean Quah2023-05-051-2/+2
| | | | | | | | | | | | Add an `is_mine_server_name` method, similar to `is_mine_id`. Ideally we would use this consistently, instead of sometimes comparing against `hs.hostname` and other times reaching into `hs.config.server.server_name`. Also fix a bug in the tests where `hs.hostname` would sometimes differ from `hs.config.server.server_name`. Signed-off-by: Sean Quah <seanq@matrix.org>
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Fix AuthBlocking check when requester is appservice (#10881)Jason Robinson2021-09-241-1/+1
| | | | | If the MAU count had been reached, Synapse incorrectly blocked appservice users even though they've been explicitly configured not to be tracked (the default). This was due to bypassing the relevant if as it was chained behind another earlier hit if as an elif. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Use direct references for some configuration variables (part 2) (#10812)Patrick Cloke2021-09-151-7/+9
|
* Add type hints to auth and auth_blocking. (#9876)Patrick Cloke2021-04-231-3/+6
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-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>`
* Don't MAU limit AS ghost usersErik Johnston2020-12-171-0/+7
|
* Add admin API for logging in as a user (#8617)Erik Johnston2020-11-171-4/+29
|
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Convert synapse.api to async/await (#8031)Patrick Cloke2020-08-061-8/+5
|
* Stop Auth methods from polling the config on every req. (#7420)Andrew Morgan2020-05-061-0/+104