Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the enterprise feature SAML SSO to allow users to use their own Identity Provider.
Implementation
The PR implements gosaml2 to allow communication between IDP and Hanko. The authentication flow itself reuses the third-party auth flow and reuses the same error and cookie structure.
Tests
Add the config from saml.mdx (and configure it to your applications needs) and use auth0 with an SAML APP. Exchange Metadata between hanko and auth0. When starting quickstart with this config you can login with auth0 when using an email address which correlates with a user in auth0 and where the domain of this address is in the domain tag for the identity provider
Todo
I did a go mod tidy and now the go.mod and go.sum do not match with hanko/main. I think that needs to be fixed manually