Skip to content
Franco Leonardo Bulgarelli edited this page May 20, 2017 · 2 revisions

About

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.

Setting the provider

The MUMUKI_LOGIN_PROVIDER environment variable can take any of the following values:

  • developer
  • auth0
  • saml

5.1 Developer

The developer mode does not need any extra configuration

5.2 Auth0

Just configure the MUMUKI_AUTH0_CLIENT_ID, MUMUKI_AUTH0_CLIENT_SECRET and MUMUKI_AUTH0_DOMAIN environment variables with the values provided by auth0.

5.3 SAML

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.

Clone this wiki locally