Single Sign-On
This is for all SSO providers other than Okta. Please see this doc for the Okta integration.
General Configuration
Scalr supports SSO providers that use SAML 2.0. When SSO is activated, it will move the authentication step outside of Scalr and hand it over to the SSO provider that you have configured. During the login to Scalr, the user will be transferred to a sign-in page provided by the SSO server. After signing in, the user will then be redirected back to Scalr which will subsequently treat the user as signed in.
To enable SSO, go to the integration tab at the account scope and click on SAML IDP. You will then be given information that will be needed in your SSO provider:

Go to your SSO provider and start the configuration (see below for examples). The Scalr setup can be finished upon completion of the SSO provider configuration.
Upload the metadata file or manually fill in the fields required by your SSO provider and verify the connection when prompted:

After you save the configuration, turn on the SSO authentication by going to the account settings:

Users and Teams with SSO
After Scalr has been reconfigured for SSO, users and teams work as follows:
-
Teams map to SSO groups. Account admins have access to create teams in Scalr and the team name will be validated against the groups in SSO, so the team name must match the group name.
-
Teams must link to at least one environment and account.
-
Once a team has been linked and given the proper permissions, any member of the related SSO group can attempt to log in to Scalr. On the first login, a user record gets created in Scalr and set as SSO authenticated.
Break Glass Users
Incidents happen and it is likely that, at some point, your SSO provider will have an outage. If this happens, you can avoid being locked out of Scalr through the âbreak glassâ feature. This feature allows you to specify a list of users who are exempt from SSO login the event of a SSO outage. These users can be specified by going to account settings:

Edit the SSO setting:

Now add the list of users who can bypass SSO when needed:

Bypass Login URL
To bypass SSO login, users should add the
?noLoginRedirect
query parameter to the account URL, e.g. https://account.scalr.io?noLoginRedirect
SSO Timeout
The SSO timeout can be configured by going to the account SSO settings and updating the default timeout, which is 2 hours:

Azure AD SSO Example
Note
Scalr supports all SAML 2.0 providers, this is just an example of a commonly used one.
Go to Azure Active Directory and click on Enterprise applications:

Select New application and Create your own application:

Name the application and select âIntegrate any other application you donât find in the galleryâ:

Select âSet up single sign-onâ:

Click edit on the SAML Configuration option and enter the following:
- Identifier = SP Endpoint from Scalr
- Reply URL = FQDN of the Scalr endpoint
- Sign on URL = the Scalr FQDN with /public/saml?acs at the end of it (i.e. https://my-account.scalr.io/public/saml?acs)
- Click save

Open the User Attributes & Claims, click add new claim, select âAll groupsâ, and save:

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:

Scalr:

On the Azure Single sign-on page, go to the Set up section:
- Azure AD Identifier = the IDP entity ID in Scalr
- Login URL = the IDP single sign-on service URL in Scalr
- Logout URL = is the IDP single logout service URL in Scalr
Azure:

Scalr:

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

Scalr:

In Azure, click on Certificate & Secrets and generate a Client secret. Paste the secret into the respective field in Scalr:
Azure:

Scalr:

In Azure, click on API Permissions. Add permission, select Microsoft Graph, Application permissions, and add Directory.Read.All. Ensure that âadmin consentâ is set to yes and the permission type is âapplicationâ.

In Scalr, add the following settings in the mapping section:
- Groups = http://schemas.microsoft.com/ws/2008/06/identity/claims/groups
- Email = http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
- Fullname = http://schemas.microsoft.com/identity/claims/displayname

In Scalr, click on the advanced section and update the following fields:
- IDP single sign on service binding = urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
- SP name id format = urn:oasis:names:tc:SAML:2.0:nameid-format:persistent


Click Connect SAML IDP and then verify the connection on the main SAML page in Scalr.
Updated about 1 month ago