-
- Downloads
Implement SAML2 authentication (#4267)
This implements both a SAML2 metadata endpoint (at `/_matrix/saml2/metadata.xml`), and a SAML2 response receiver (at `/_matrix/saml2/authn_response`). If the SAML2 response matches what's been configured, we complete the SSO login flow by redirecting to the client url (aka `RelayState` in SAML2 jargon) with a login token. What we don't yet have is anything to build a SAML2 request and redirect the user to the identity provider. That is left as an exercise for the reader.
Showing
- changelog.d/4267.feature 1 addition, 0 deletionschangelog.d/4267.feature
- synapse/app/homeserver.py 4 additions, 0 deletionssynapse/app/homeserver.py
- synapse/config/homeserver.py 2 additions, 1 deletionsynapse/config/homeserver.py
- synapse/config/saml2_config.py 110 additions, 0 deletionssynapse/config/saml2_config.py
- synapse/python_dependencies.py 4 additions, 1 deletionsynapse/python_dependencies.py
- synapse/rest/saml2/__init__.py 29 additions, 0 deletionssynapse/rest/saml2/__init__.py
- synapse/rest/saml2/metadata_resource.py 36 additions, 0 deletionssynapse/rest/saml2/metadata_resource.py
- synapse/rest/saml2/response_resource.py 71 additions, 0 deletionssynapse/rest/saml2/response_resource.py
- tests/utils.py 1 addition, 0 deletionstests/utils.py
changelog.d/4267.feature
0 → 100644
synapse/config/saml2_config.py
0 → 100644
synapse/rest/saml2/__init__.py
0 → 100644
synapse/rest/saml2/metadata_resource.py
0 → 100644
synapse/rest/saml2/response_resource.py
0 → 100644
Please register or sign in to comment