Home
mumukit-login
allows you to easily change your login provider in a Mumuki Platform application. The following how-to applies to any application using this gem.
The MUMUKI_LOGIN_PROVIDER
environment variable can take any of the following values:
developer
auth0
saml
The developer mode does not need any extra configuration
Just configure the MUMUKI_AUTH0_CLIENT_ID
, MUMUKI_AUTH0_CLIENT_SECRET
and MUMUKI_AUTH0_DOMAIN
environment variables with the values provided by auth0.
First, configure the MUMUKI_SAML_IDP_SSO_TARGET_URL
environment variable with the "single sign on URL" provided by your SAML IdP.
Then copy in the root of this project, the public key certificate (also provided by your SAML IdP) and save it as saml.crt
. Check its permitions so rails can read it.
Last, you have to ask your SAML IdP to federate your SP. Start rails and send the XML available at {YOUR_DOMAIN}/auth/saml/metadata
to your SAML IdP.