Skip to main content

Configuring SSO in Microsoft Azure Active Directory

Enterprise Plans only

  1. Log into Azure administrator panel and go to Active Directory.

  2. In the menu click Enterprise Applications.

    Menu Applications
  3. Click New Application.

    Add App
  4. Type Sauce Labs in the search box and choose the app Sauce Labs.

    Search App
  5. Leave the default name or rename it and click Create.

    Create App
  6. Set up SAML Single Sign-On either by clicking Single sign-on in the menu on the left or by clicking the tile Set up single sign on.

    Set up SAML SSO
  7. Click the SAML tile.

    Set up SAML SSO
  8. Save the default configuration by clicking Yes.

    Save default SP configuration
  9. In the Attributes & Claims section click Edit.

    Edit claims
  10. Edit the value of NameID by clicking on it.

    Edit NameID
  11. Make sure that the source value of this claim is a valid email address (for example user.mail) and not a user identifier. Sauce Labs Service Provider requires valid email addresses during SAML SSO authentication. If you changed the source attribute, save the changes.

    Source attribute of NameID
  12. Next, assign users to this application:

    1. Go to User and groups in the main menu of the application.

      Menu: Users and groups
    2. Click Add user/group.

      Add user/group
    3. Choose which groups and users should have access to Sauce Labs via this SAML application.

      Assign user/group
  13. Go back to the Single sign-on tab.

    Menu: Single sign-on
  14. In the SAML Certificates section for Federation Metadata XML, click Download.

    Download Metadata
  15. Use the metadata file from the previous step and set up the SSO integration at Sauce Labs in Team Management Panel.

  16. Test the integration using the IdP-initiated and the SP-initiated login.

    1. The IdP-initiated flow can be tested from the Single sign-on tab.

      Menu: Single sign-on
    2. Next, in the last section Test single sign-on with Sauce Labs click Test.

      Test integration
    3. Click Test sign in.

      Test integration