-
- Downloads
Combine the SSO Redirect Servlets (#9015)
* Implement CasHandler.handle_redirect_request ... to make it match OidcHandler and SamlHandler * Clean up interface for OidcHandler.handle_redirect_request Make it accept `client_redirect_url=None`. * Clean up interface for `SamlHandler.handle_redirect_request` ... bring it into line with CAS and OIDC by making it take a Request parameter, move the magic for `client_redirect_url` for UIA into the handler, and fix the return type to be a `str` rather than a `bytes`. * Define a common protocol for SSO auth provider impls * Give SsoIdentityProvider an ID and register them * Combine the SSO Redirect servlets Now that the SsoHandler knows about the identity providers, we can combine the various *RedirectServlets into a single implementation which delegates to the right IdP. * changelog
Showing
- changelog.d/9015.feature 1 addition, 0 deletionschangelog.d/9015.feature
- synapse/handlers/cas_handler.py 26 additions, 9 deletionssynapse/handlers/cas_handler.py
- synapse/handlers/oidc_handler.py 10 additions, 5 deletionssynapse/handlers/oidc_handler.py
- synapse/handlers/saml_handler.py 18 additions, 7 deletionssynapse/handlers/saml_handler.py
- synapse/handlers/sso.py 84 additions, 2 deletionssynapse/handlers/sso.py
- synapse/rest/client/v1/login.py 20 additions, 69 deletionssynapse/rest/client/v1/login.py
- synapse/rest/client/v2_alpha/auth.py 14 additions, 20 deletionssynapse/rest/client/v2_alpha/auth.py
- tests/rest/client/v1/test_login.py 1 addition, 1 deletiontests/rest/client/v1/test_login.py
Loading
Please register or sign in to comment