This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change
1
+ Support the `m.login.token` login flow when OpenID Connect is enabled.
Original file line number Diff line number Diff line change @@ -99,25 +99,20 @@ def on_GET(self, request):
99
99
flows .append ({"type" : LoginRestServlet .JWT_TYPE })
100
100
101
101
if self .cas_enabled :
102
- flows .append ({"type" : LoginRestServlet .SSO_TYPE })
103
-
104
102
# we advertise CAS for backwards compat, though MSC1721 renamed it
105
103
# to SSO.
106
104
flows .append ({"type" : LoginRestServlet .CAS_TYPE })
107
105
106
+ if self .cas_enabled or self .saml2_enabled or self .oidc_enabled :
107
+ flows .append ({"type" : LoginRestServlet .SSO_TYPE })
108
108
# While its valid for us to advertise this login type generally,
109
109
# synapse currently only gives out these tokens as part of the
110
- # CAS login flow.
110
+ # SSO login flow.
111
111
# Generally we don't want to advertise login flows that clients
112
112
# don't know how to implement, since they (currently) will always
113
113
# fall back to the fallback API if they don't understand one of the
114
114
# login flow types returned.
115
115
flows .append ({"type" : LoginRestServlet .TOKEN_TYPE })
116
- elif self .saml2_enabled :
117
- flows .append ({"type" : LoginRestServlet .SSO_TYPE })
118
- flows .append ({"type" : LoginRestServlet .TOKEN_TYPE })
119
- elif self .oidc_enabled :
120
- flows .append ({"type" : LoginRestServlet .SSO_TYPE })
121
116
122
117
flows .extend (
123
118
({"type" : t } for t in self .auth_handler .get_supported_login_types ())
You can’t perform that action at this time.
0 commit comments