Replies: 2 comments 8 replies
-
Does SP mean "SAML Provider"? So do you want Ory Kratos to be a SAML provider or a consumer? :) From the post it sounds like a SAML provider? |
Beta Was this translation helpful? Give feedback.
8 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone! With my team, we want to implement SAML2 on Ory Kratos.
Our idea :
Our idea would be to implement the SAML2 protocol in Kratos. We would like Kratos to act as a Service Provider that could be connected to an external IDP.
Our solution :
This library looks very interesting : https://github.com/crewjam/saml
In our case, we would have to transform Kratos into a SP by adding all the necessary endpoints and associated handlers :
The crewjam SAML library in Go will handle these routes.
In this library, routes that needs to be protected call RequireAccount. A request seems to be sent to the IDP every time you want to access a protected page
Is it actually needed ? As long as a session is active and valid with the SP, it is not necessarily needed to check every time the session with the IdP as well (IdP is an Identity Provider, access limitation is left to the SP).
Basically, both options are valid
As this is to be implemented in an open source project, the ideal would be to give both options to users.
With Kratos, the protection is ensured by the /session/whoami route. The handler for this route in Kratos is here. The objective would be to standardize these two methods.
Bindings :
IdP commonly support 2 ways of exchanging data :
It should be possible in kratos to configure which way to use to talk with an IdP.
Possible parameters
Conclusion :
This is where we are in our research at the moment. This is just a start but we would like your opinion!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions