0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-05 14:18:55 +01:00
synapse/changelog.d
Richard van der Hoff 0a4001eba1
Clean up exception handling for access_tokens (#5656)
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.
2019-07-11 11:06:23 +01:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
5544.misc Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
5606.misc Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
5609.bugfix Fix 'utime went backwards' errors on daemonization. (#5609) 2019-07-03 22:40:45 +10:00
5611.misc Add a sytest blacklist file (#5611) 2019-07-05 01:24:13 +10:00
5613.feature Add origin_server_ts and sender fields to m.replace (#5613) 2019-07-05 17:20:02 +01:00
5616.misc Make errors about email password resets much clearer (#5616) 2019-07-05 10:44:12 +01:00
5617.misc Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
5621.bugfix Fixes to the federation rate limiter (#5621) 2019-07-05 11:10:19 +01:00
5622.misc remove dead transaction persist code (#5622) 2019-07-05 12:59:42 +01:00
5623.feature Add default push rule to ignore reactions (#5623) 2019-07-05 17:37:52 +01:00
5625.removal Remove support for invite_3pid_guest. (#5625) 2019-07-05 16:47:58 +01:00
5626.feature Include the original event in /relations (#5626) 2019-07-09 13:43:08 +01:00
5627.misc Add a linting script (#5627) 2019-07-10 14:03:18 +01:00
5628.misc Move get_or_create_user to test code (#5628) 2019-07-08 23:52:26 +10:00
5630.misc Add a few more common environment directory names to black exclusion (#5630) 2019-07-08 21:53:33 +10:00
5637.misc Unblacklist some user_directory sytests (#5637) 2019-07-09 02:15:17 +10:00
5638.bugfix Changelog 2019-07-08 15:28:38 +01:00
5639.misc Factor out some redundant code in the login impl (#5639) 2019-07-08 23:54:22 +10:00
5640.misc Update ModuleApi to avoid register(generate_token=True) (#5640) 2019-07-08 23:55:34 +10:00
5641.misc Remove access-token support from RegistrationHandler.register (#5641) 2019-07-08 19:01:08 +01:00
5642.misc Remove access-token support from RegistrationStore.register (#5642) 2019-07-10 16:26:49 +01:00
5643.misc Better logging for auto-join. (#5643) 2019-07-08 17:14:51 +01:00
5644.bugfix Changelog 2019-07-08 17:31:58 +01:00
5645.misc remove unused and unnecessary check for FederationDeniedError (#5645) 2019-07-09 18:37:39 +01:00
5651.doc Correct pep517 flag in readme (#5651) 2019-07-10 13:55:24 +01:00
5654.bugfix Don't bundle aggregations when retrieving the original event (#5654) 2019-07-10 14:43:11 +01:00
5656.misc Clean up exception handling for access_tokens (#5656) 2019-07-11 11:06:23 +01:00
5658.bugfix Rename changelog file 2019-07-10 15:48:50 +01:00
5659.misc Inline issue_access_token (#5659) 2019-07-11 04:10:07 +10:00