Skip to content
LogoLogo

Set up SSO with Okta (SAML)

For the IT admin who received a SaaSLayer SSO setup link. You create a SAML 2.0 app in Okta whose NameID is the immutable Okta user id, paste its metadata URL into the setup page, prove your email domain and activate. Plan on about 15 minutes.

Status: Supported. Tested end to end with Okta (sign-in with the Okta user id as a persistent NameID, a groups attribute and hosted refresh). The Okta SAML dashboard tile is in preview. Names are provisional until the SSO naming review.

What the setup page gives you

Open the setup link. Under Identity provider → Register these in your identity provider it shows:

ValueExampleWhere it goes in Okta
Entity ID (audience URI)urn:amazon:cognito:sp:<userPoolId>Audience URI (SP Entity ID)
ACS URL (reply URL)https://auth.yourapp.saaslayer-cloud.com/saml2/idpresponseSingle sign-on URL

The host is the app's branded sign-in host: auth.<app>.saaslayer-cloud.com, or the app's own domain such as auth.yourapp.com. Copy the value from the setup page exactly. If the app moves to another sign-in host later, its owner sends you the new value: add it beside this one, and remove the old one only when they confirm the move.

Under Domains it shows one DNS TXT record per email domain, for example:

_saaslayer-sso.acme.com  TXT  "saaslayer-sso-verification=<token>"

1. Create the app

  1. Applications → Applications → Create App Integration → SAML 2.0 → Next.
  2. General Settings: your app's name. Click Next.
  3. Configure SAML:
    • Single sign-on URL: the ACS URL. Keep Use this for Recipient URL and Destination URL checked.
    • Audience URI (SP Entity ID): the Entity ID.
    • Default RelayState: leave empty.
    • Name ID format: Persistent.
    • Application username: Custom, with the expression user.getInternalProperty("id").
    • Update application username on: Create and update.
  4. Attribute Statements: Name email, value user.email. The attribute must be named email.
  5. Group Attribute Statements: Name groups, filter for the groups you want sent (for example Starts with acme-, or Matches regex .*).
  6. Next, pick This is an internal app, Finish.

Why the NameID must be the Okta user id

SaaSLayer matches people by an immutable id, never by email. Okta's default NameID is the email, which can change or be reused. A sign-in whose NameID looks like an email is refused with email-shaped-subject, which testing confirmed.

Set the username format before you assign anyone. Okta applies a changed username template only to new assignments. If people were assigned before you changed it, re-apply the assignments (unassign and reassign the people or groups); until then their sign-ins still carry the email and are refused.

2. Assign people and copy the metadata URL

  1. Assignments → Assign the people or groups who should sign in.
  2. Sign On tab: copy the Metadata URL. It looks like https://acme.okta.com/app/<app key>/sso/saml/metadata.
    • Use this public URL. The Admin API metadata link (/api/v1/apps/…/metadata) needs an API token, so it can't be fetched.
  3. From the same metadata, note the Issuer (IdP entity id), http://www.okta.com/<app key>.

3. Fill in the setup page

Under Identity provider settings, enter your values. The fields may be empty: the connection can start blank, with only the protocol chosen. Replace any values already there with yours:

FieldValue
Entity ID (issuer)http://www.okta.com/<app key>
Metadata URLThe public metadata URL from step 2

Click Save identity provider. The issuer locks when the connection activates.

4. Prove your domain

Under Domains, add each email domain your people use. Publish the TXT record it shows at your DNS provider, then click Check DNS for <domain>. With a TTL of 300 seconds, it verified in under a minute in testing.

A domain belongs to one connection at a time. Only people whose Okta email is in a verified domain can sign in through this connection. Contractors on other domains are invited by email and use the app's normal sign-in.

5. Activate and test

Click Finish setup and activate. The button stays disabled, and the page lists what is missing, until the issuer and the metadata are saved. Then sign in as an assigned person: use Test sign-in when the page offers it, else open the app's sign-in page and enter your work email. Okta's page opens straight away, with no SaaSLayer or Cognito screen in between.

Optional: SCIM provisioning

Status: Supported (preview). Tested end to end with Okta's provisioning client: user create, the identity join with sign-in, group push, sync-complete, and deprovisioning. Testing with Okta found the two gaps this section handles: Okta does not send externalId by default, and it sends a password. Turn SCIM on only after sign-in works. Your SaaSLayer contact gives you the SCIM base URL (…/scim/v2/<connectionId>) and a bearer token.

  1. General → App Settings → Edit: set Provisioning to SCIM. Save.
  2. Provisioning → Integration → Edit:
    • SCIM connector base URL: the SCIM base URL.
    • Unique identifier field for users: userName.
    • Supported provisioning actions: Push New Users, Push Profile Updates and Push Groups.
    • Authentication Mode: HTTP Header, with the bearer token. Test Connector Configuration, then save.
  3. Provisioning → To App → Edit: enable Create Users, Update User Attributes and Deactivate Users. Any password Okta sends (it sends one on every create, even with Sync Password off) is ignored: SaaSLayer never stores it, and your people keep signing in through Okta.
  4. Add the externalId attribute. SaaSLayer requires externalId to be the immutable Okta user id and refuses a create without it. Okta does not send externalId by default, and its own variable name externalId is reserved:
    • Directory → Profile Editor → your app's profile → Add Attribute: display name SaaSLayer externalId, variable name saaslayerExternalId, external name externalId, external namespace urn:ietf:params:scim:schemas:core:2.0:User. Save.
    • Mappings → Okta User to your app: map user.getInternalProperty("id") to saaslayerExternalId, applied on create and update. Save.
  5. Push users first, then groups (Push Groups → Find groups by name).

People assigned before provisioning was enabled are not pushed: re-assign them (unassign and assign again) after step 4. When the first full push is done, tell your SaaSLayer contact, who confirms it so SCIM becomes the group authority.

Signing certificate

Okta's signing certificate expires. SaaSLayer alerts the app's owner at 90, 30, 7 and 1 days. To rotate, activate the new certificate in Okta; the owner then reloads the metadata (two certificates may overlap during the switch).

Okta shows the app's name and logo on your people's Okta End-User Dashboard. On the app's General tab, SAML Settings → Edit → General Settings:

  • App name: the app's name, as your people know it.
  • App logo: the app's logo (PNG, JPG or GIF, under 1 MB).

Okta's own sign-in page keeps your organization's branding (Customizations → Brands). People see your Okta sign-in, then land in the app.

If it fails

See SSO troubleshooting. The usual Okta SAML causes:

  • email-shaped-subject: the NameID is still the email (step 1.3, then re-apply assignments).
  • email-missing: no attribute named email (step 1.4).
  • domain-mismatch: the person's Okta email is outside the verified domains.
  • No groups arrive: the group attribute statement is missing or its filter matches none of the person's groups.