External Authentication

Note

If you want to configure SSO on scalr.io, please see Identity and Access Management.

SAML Integration

When SAML is activated, it will move the authentication step outside of Scalr and hand it over to the SAML server that you have configured. During sign in to Scalr, the user will be transferred to a sign in page provided by the SAML server. After sign in, the user will then be redirected back to Scalr which will subsequently treat the user as signed in. Each account in Scalr can have a separate SAML provider if your organization requires it.

To enable SAML, you must configure it in the global area of the Scalr UI. To do this:

  1. Log in as a global admin, click on the Scalr icon on the top left and go to IAM -> identity providers:

    ../../_images/saml_setup.png
  2. Note down the SP endpoint as that will be used with the SAML provider. For example: https://scalr.server/public/saml/idp-sp986542njcvhjv78?metadata and https://scalr.server/public/saml/idp-sp986542njcvhjv78?acs

  3. Fill in the fields required by your SAML provider.

  4. After you save the SAML configuration, link the provider to an account:

    ../../_images/saml_account.png

Note

In the event you need to log in with a local administrator, add the following to the end of your Scalr url to avoid the SAML login screen: #?no-login-redirect (https://your.scalrserver.com#?no-login-redirect)

SAML Example : Okta

Note

Scalr supports all SAML 2.0 providers, this is just an example of a commonly used one.

  1. Create an application by clicking Applications, then Applications, and Create App Integration:

    ../../_images/okta_app.png
  2. Select SAML 2.0 in the “Create a new application integration” dialogue message:

    ../../_images/saml2.png
  1. Enter the “App name”, then select Next:

    ../../_images/saml_app_name.png
  2. Configure SAML settings. Fill in the form as shown in the example below.

  • The “Single sign on URL” is your SP endpoint, but with ?acs instead of /metadata at the end. Example: https://example.scalr.io/public/saml/idp-tl2g4mu9v47a111?acs

  • The “Audience URI (SP Entity ID)” is your SP endpoint. Example: https://example.scalr.io/public/saml/idp-tl2g4mu9v47a111/metadata

    ../../_images/configure_saml1.png
  • Ensure the “Group Attribute Statements (Optional)” field is populated in order for the user groups to be sent to Scalr correctly. It’s extremely important to correctly enter the “Attribute name”, “Format”, and “Filter” option as shown below:

    ../../_images/configure_saml2.png
  1. Finishing the SAML integration:

    ../../_images/okta_finish.png
  2. When complete, you will be forwarded to a Sign On page where the SAML Service Provider configuration options link can be found. Click “View Setup Instructions” to see details:

    ../../_images/okta_instructions.png
  3. You can either upload the metadata to Scalr or manually enter the following. If the manual entry is being done, the following settings in to the SAML setup in the Scalr UI. Be sure to use the ID and URL that you obtained previously:

  1. Click save and you will now see the SSO option in Scalr upon the next login.

SAML Example : Azure AD SSO

Note

Scalr supports all SAML providers, this is just an example of a commonly used one.

  1. Go to Azure Active Directory and click on Enterprise applications:

    ../../_images/azure1.png
  2. Select New application and Create your own application:

    ../../_images/azure2.png
  3. Name the application and select “integrate any other application you don’t find in the gallery”:

    ../../_images/azure3.png
  4. Select “Set up single sign on”:

    ../../_images/azure4.png
  5. Click edit on the Basic SAML Configuration option and enter the following:

  1. Open the User Attributes & Claims, click add new claim, add user.groups [All], and save:

    ../../_images/azure6.png
  2. On the Single sign-on page, go to the SAML Signing Certificate section and download the Certificate (Base64). Paste that into the IDP x509cert section in Scalr:

Azure:
../../_images/azure7.png
Scalr:
../../_images/azure8.png
  1. On the Azure Single sign-on page, go to the Set up <your app name> section:

  • Login URL = the IDP single sign on service URL in Scalr

  • Azure AD Identifier = the IDP entity ID in Scalr

  • Logout URL = the is the IDP single logout service URL in Scalr

Azure:
../../_images/azure9.png
Scalr:
../../_images/azure10.png
  1. In Azure, go to App registrations, find your app and click on it. Copy the Application (client) ID and Directory (tenant) ID, paste the IDs into the respective fields in Scalr:

Azure:
../../_images/azure11.png
Scalr:
../../_images/azure12.png
  1. In Azure, click on Certificate & Secrets and generate a Client secret. Paste the secret into the respective field in Scalr:

Azure:
../../_images/azure13.png
Scalr:
../../_images/azure12.png
  1. In Azure, click on API Permissions. Add a permission, select Microsoft Graph, Application permissions, and add Directory.Read.All

    ../../_images/azure14.png
  2. In Scalr, add the following settings in the mapping section:

  1. In Scalr, click on the advanced section and update the following fields:

  1. Click save and you will now see the SAML option in Scalr upon the next login:

    ../../_images/azure17.png

Users and Teams with SAML

After Scalr has been reconfigured for SAML, users and teams work as follows.

  1. Teams map to AD/LDAP groups. Account admins still have to create teams in Scalr but the team name will be validated against the groups in AD/LDAP, so the team name must match the group name.

  2. Teams must linked to at least one environment

  3. Once a team has been linked, any member of the related LDAP group can attempt to login to Scalr. On first login a user record gets created in Scalr and set as LDAP authenticated.

  4. Scalr admin can still create Scalr authenticated users to act as global and account admins. SAML authenticated users can also be set as global and account admins.

  5. If a user has access to more than one account, they will be prompted to select an account during login.


LDAP Integration

Integration with Scalr

When LDAP is activated, it will move the authentication and user management outside of Scalr and hand it over to the LDAP server that you have configured. Each account in Scalr can have a separate LDAP provider if your organization requires it.

Configuration

To enable LDAP, you must configure it in the global area of the Scalr UI. To do this:

  1. Log in as a global admin, click on the Scalr icon on the top left and go to IAM -> identity providers:

    ../../_images/ldap_setup.png
  2. Fill in the fields required by your LDAP server.

  3. After you save the LDAP configuration, link the provider to an account:

    ../../_images/ldap_account.png

Users and Teams with LDAP

After Scalr has been reconfigured for LDAP, users and teams work as follows.

  1. Teams map to AD/LDAP groups. Account admins still have to create teams in Scalr but the team name will be validated against the groups in AD/LDAP, so the team name must match the group name.

  2. Teams must linked to at least one environment

  3. Once a team has been linked, any member of the related LDAP group can attempt to login to Scalr. On first login a user record gets created in Scalr and set as LDAP authenticated.

  4. Scalr admin can still create Scalr authenticated users to act as global and account admins. SAML authenticated users can also be set as global and account admins.

  5. If a user has access to more than one account, they will be prompted to select an account during login.