- Nov 17, 2020
-
-
Erik Johnston authored
-
- Oct 29, 2020
-
-
Erik Johnston authored
We do it this way round so that only the "owner" can delete the access token (i.e. `/logout/all` by the "owner" also deletes that token, but `/logout/all` by the "target user" doesn't). A future PR will add an API for creating such a token. When the target user and authenticated entity are different the `Processed request` log line will be logged with a: `{@admin:server as @bob:server} ...`. I'm not convinced by that format (especially since it adds spaces in there, making it harder to use `cut -d ' '` to chop off the start of log lines). Suggestions welcome.
-
- Oct 09, 2020
-
-
Patrick Cloke authored
All handlers now available via get_*_handler() methods on the HomeServer.
-
- Sep 04, 2020
-
-
Patrick Cloke authored
-
- Aug 06, 2020
-
-
Patrick Cloke authored
-
- May 06, 2020
-
-
Andrew Morgan authored
-
- Apr 15, 2020
-
-
Patrick Cloke authored
-
- Sep 11, 2019
-
-
Jason Robinson authored
This allows support users to be created even on MAU limits via the admin API. Support users are excluded from MAU after creation, so it makes sense to exclude them in creation - except if the whole host is in disabled state. Signed-off-by:
Jason Robinson <jasonr@matrix.org>
-
- Jul 12, 2019
-
-
Richard van der Hoff authored
Record how long an access token is valid for, and raise a soft-logout once it expires.
-
- Jul 11, 2019
-
-
Richard van der Hoff authored
First of all, let's get rid of `TOKEN_NOT_FOUND_HTTP_STATUS`. It was a hack we did at one point when it was possible to return either a 403 or a 401 if the creds were missing. We always return a 401 in these cases now (thankfully), so it's not needed. Let's also stop abusing `AuthError` for these cases. Honestly they have nothing that relates them to the other places that `AuthError` is used, other than the fact that they are loosely under the 'Auth' banner. It makes no sense for them to share exception classes. Instead, let's add a couple of new exception classes: `InvalidClientTokenError` and `MissingClientTokenError`, for the `M_UNKNOWN_TOKEN` and `M_MISSING_TOKEN` cases respectively - and an `InvalidClientCredentialsError` base class for the two of them.
-
- Jul 10, 2019
-
-
Richard van der Hoff authored
this is only used in one place, so it's clearer if we inline it and reduce the API surface. Also, fixes a buglet where we would create an access token even if we were about to block the user (we would never return the AT, so the user could never use it, but it was still created and added to the db.)
-
Richard van der Hoff authored
The 'token' param is no longer used anywhere except the tests, so let's kill that off too.
-
- Jun 20, 2019
-
-
Amber Brown authored
-
- Mar 19, 2019
-
-
Richard van der Hoff authored
Fixes a bug where hs_disabled_message was not enforced for 3pid-based requests if there was no server_notices_mxid configured.
-
- Jan 10, 2019
-
-
Richard van der Hoff authored
-
- Dec 14, 2018
-
-
Neil Johnson authored
Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits.
-
- Sep 06, 2018
-
-
Amber Brown authored
-
- Aug 31, 2018
-
-
Neil Johnson authored
-
- Aug 24, 2018
-
-
Erik Johnston authored
-
- Aug 18, 2018
-
-
Neil Johnson authored
-
Neil Johnson authored
-
- Aug 16, 2018
-
-
Neil Johnson authored
-
- Aug 15, 2018
-
-
Neil Johnson authored
-
Neil Johnson authored
-
- Aug 13, 2018
-
-
Neil Johnson authored
-
Neil Johnson authored
Revert "support admin_email config and pass through into blocking errors, return AuthError in all cases" This reverts commit 0d43f991.
-
Neil Johnson authored
-
Amber Brown authored
-
- Aug 10, 2018
-
-
black authored
-
- Aug 04, 2018
-
-
Neil Johnson authored
-
- Aug 03, 2018
-
-
Neil Johnson authored
-
Neil Johnson authored
-
- Aug 02, 2018
-
-
Neil Johnson authored
-
- Aug 01, 2018
-
-
Amber Brown authored
-
- Jul 09, 2018
-
-
Amber Brown authored
-
- Jun 28, 2018
-
-
Matthew Hodgson authored
-
Matthew Hodgson authored
-
- Dec 06, 2016
-
-
Richard van der Hoff authored
Make sure that a user cannot pretend to be a guest by adding 'guest = True' caveats.
-
- Sep 12, 2016
-
-
Mark Haines authored
-
- Jul 20, 2016
-
-
Richard van der Hoff authored
Record the device_id when we add a client ip; it's somewhat redundant as we could get it via the access_token, but it will make querying rather easier.
-