Description
saml_idp is a Ruby SAML Identity Provider library. It lets your application act as the server side of SAML 2.0 authentication, handling authentication requests and confirmation responses for service providers. It was forked from a library that was first set up to test SAML clients, and the README says the fork moves it closer to a real SAML IdP implementation. You install it through your Gemfile. Outside Rails, you include SamlIdp::Controller and call decode_request on the incoming SAMLRequest parameter. That gives you the assertion consumer URL to authenticate the user for, and you can verify the request signature with valid?. How you authenticate the user is up to you. You then post a SAMLResponse, created with encode_response for the user's email, to the assertion consumer URL. A Rails integration guide is on the project wiki. The configuration section covers signed assertions and signed responses. By default, assertions are signed with the algorithm set in config.algorithm, because they carry information such as the NameID, and it also covers keys and secrets. The project is on GitHub.…
Highlights
- SAML 2.0 identity provider for Ruby
- Works with Rails or plain Ruby
- Signed assertions and signed responses
- Request signature checks with valid?
- Keys and secrets configuration
Ratings & Reviews
No ratings yet
Be the first to rate Saml Idp.
People also visit
Saml Idp FAQ
What is saml_idp?
A Ruby library that lets your app act as a SAML 2.0 identity provider.
Do I need Rails?
No. The README says you can include SamlIdp::Controller in any app, and a separate wiki guide covers Rails.
How do I verify a request?
Call decode_request with the SAMLRequest parameter, plus the Signature, SigAlg and RelayState parameters when they are present, then call valid?.
How are assertions signed?
By default with the algorithm in config.algorithm, because assertions carry sensitive data such as NameID.
Where is the Rails guide?
On the project's wiki, according to the README.
What are the best Saml Idp alternatives?
Popular alternatives to Saml Idp include Djangosaml2, Laravel Saml2 and Cas. See all Saml Idp alternatives
