Search code examples
ruby-on-railsrubysamlapplication-settings

Ruby saml Service Provider entity id


I am setting up SAML auth on my project. I use ruby-saml gem for this.

Now, connecting to Identity Provider, I was asked to provide them entity id. I can't seem to find such setting in ruby-saml. It has Identity Provider's entity_id, but this is something they have to provide to me.

Where do I set my entity id?


Solution

  • It is settings.issuer. If you dig into the code used to generate the metadata you will see:

     if settings.issuer != nil
        root.attributes["entityID"] = settings.issuer
     end
    

    A good way to test your implementation by yourself is using the IDp app that OneLogin provides.