Skip to content
Skip to main content

Set up SAML SSO with Okta

Last updated:

This guide walks through creating an Okta SAML 2.0 app and connecting it to your Nylas organization. Complete domain verification and the Custom SAML step before following these instructions.

You need an Okta Developer account (free) or an existing Okta org.

To find these values, go to Settings > SAML SSO in the Nylas Dashboard, then expand the Connect your identity provider step. The SP values appear under Service provider details for your IdP.

Nylas SP valueWhere to paste it in your IdP
Metadata URLImport metadata URL (if your IdP supports it; this imports SP Entity ID and ACS URL automatically)
SP Entity IDAudience URI, Audience Restriction, or Identifier (Entity ID)
ACS URLSingle sign-on URL, Reply URL, or Assertion Consumer Service URL
  1. In the Okta Admin Console, go to Applications > Applications and click Create App Integration.

  2. Choose SAML 2.0 and click Next.

  3. On the General Settings tab, enter an app name (for example, Nylas Dashboard) and click Next.

  4. On the Configure SAML tab, fill in the SP values from your Nylas Dashboard (Connect your identity provider step):

    • Single sign-on URL: paste the ACS URL.
    • Audience URI (SP Entity ID): paste the SP Entity ID.
    • Leave Default RelayState empty.
    • Set Name ID format to EmailAddress.
    • Set Application username to Email.
  5. Under Attribute Statements, add the following:

    NameName formatValue
    emailUnspecifieduser.email
  6. If you plan to use group-to-role mapping, add a Group Attribute Statement:

    NameName formatFilter
    groupsUnspecifiedMatches regex .* (or a more specific filter for the groups you want to send)
  7. Click Next, select I’m an Okta customer adding an internal app, and click Finish.

Get Okta metadata and complete setup in Nylas

Section titled “Get Okta metadata and complete setup in Nylas”
  1. On the app’s Sign On tab, click View SAML setup instructions.
  2. Copy the IDP metadata XML shown at the bottom of the page (or note the Identity Provider metadata URL).
  3. Back in the Nylas Dashboard (Connect your identity provider step), paste the metadata XML into the IdP Metadata XML field or click Upload XML file, then click Save configuration.

The Connected IdP card confirms the saved SSO URL and entity ID.

SAML login only works for Okta users who are assigned to the app.

  1. In the Okta Admin Console, go to the app’s Assignments tab.
  2. Click Assign and choose Assign to People or Assign to Groups.
  3. Select the users or groups you want to grant Dashboard access to and click Done.
  1. Open a private browser window.
  2. Go to the Nylas Dashboard login page.
  3. Enter an email on your verified domain and click Continue.
  4. You should be redirected to the Okta sign-in page.
  5. Sign in and confirm you land in the Dashboard.

If login fails, see Troubleshooting.