handnot2 / samly

Elixir Plug library to enable SAML 2.0 SP SSO in Phoenix/Plug applications.
MIT License
125 stars 90 forks source link

Support for custom entityID attribute for SAML SP #2

Closed handnot2 closed 6 years ago

handnot2 commented 6 years ago

Samly OOTB behavior is to use the metadata URI as the SP entity ID. Some of IdPs provide support for urn style entity IDs.

Add a configuration option to support custom SP entityID:

config :samly, Samly.Provider,
  entity_id: "urn:myhost-name:my-id"