diff options
author | reivilibre <oliverw@matrix.org> | 2023-03-23 12:11:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 12:11:14 +0000 |
commit | 98fd558382226b347d78e5f6e6782c6e74c25e69 (patch) | |
tree | ec4c7ef0999d40dd47e0c29ac645901b86efd7c5 /synapse/rest/client/login.py | |
parent | Use immutabledict instead of frozendict (#15113) (diff) | |
download | synapse-98fd558382226b347d78e5f6e6782c6e74c25e69.tar.xz |
Add a primitive helper script for listing worker endpoints. (#15243)
Co-authored-by: Patrick Cloke <patrickc@matrix.org>
Diffstat (limited to 'synapse/rest/client/login.py')
-rw-r--r-- | synapse/rest/client/login.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/rest/client/login.py b/synapse/rest/client/login.py index 8adced41e5..b7e9c8f6b5 100644 --- a/synapse/rest/client/login.py +++ b/synapse/rest/client/login.py @@ -72,6 +72,8 @@ class LoginResponse(TypedDict, total=False): class LoginRestServlet(RestServlet): PATTERNS = client_patterns("/login$", v1=True) + CATEGORY = "Registration/login requests" + CAS_TYPE = "m.login.cas" SSO_TYPE = "m.login.sso" TOKEN_TYPE = "m.login.token" @@ -537,6 +539,7 @@ def _get_auth_flow_dict_for_idp(idp: SsoIdentityProvider) -> JsonDict: class RefreshTokenServlet(RestServlet): PATTERNS = client_patterns("/refresh$") + CATEGORY = "Registration/login requests" def __init__(self, hs: "HomeServer"): self._auth_handler = hs.get_auth_handler() @@ -590,6 +593,7 @@ class SsoRedirectServlet(RestServlet): + "/(r0|v3)/login/sso/redirect/(?P<idp_id>[A-Za-z0-9_.~-]+)$" ) ] + CATEGORY = "SSO requests needed for all SSO providers" def __init__(self, hs: "HomeServer"): # make sure that the relevant handlers are instantiated, so that they |