Skip to content
LogoLogo

Set up SSO with Okta (OIDC)

For the IT admin who received a SaaSLayer SSO setup link. You create an OIDC app in Okta, paste its values into the setup page, prove your email domain with a DNS record and activate. Plan on about 15 minutes.

Status: Supported. Tested end to end with Okta (Okta Identity Engine, custom authorization server, sign-in with groups and hosted refresh). 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
Redirect URIhttps://auth.yourapp.saaslayer-cloud.com/oauth2/idpresponseThe app's Sign-in redirect URIs

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. Prepare the authorization server

Use a custom authorization server. Okta's org authorization server (https://<okta domain>, no /oauth2/…) sends no groups claim.

  1. Security → API → Authorization Servers. Open default (or Add Authorization Server). Copy its Issuer, for example https://acme.okta.com/oauth2/default.
  2. Scopes → Add Scope. Name groups, any display phrase. Create it.
    • Without this scope, Okta refuses the sign-in with invalid_scope when SaaSLayer asks for groups. Testing hit exactly this.
  3. Claims → Add Claim:
    • Name: groups.
    • Include in token type: ID Token, Always.
    • Value type: Groups.
    • Filter: the groups you want sent, for example Starts with acme- or Matches regex .*.
    • Include in: Any scope.
  4. Access Policies → Add Policy, assigned to the app you create next (or All clients). Add a rule that allows the Authorization Code grant.

2. Create the app

  1. Applications → Applications → Create App Integration.
  2. Pick OIDC - OpenID Connect and Web Application. Click Next.
  3. Fill in:
    • App integration name: your app's name.
    • Grant type: Authorization Code only.
    • Sign-in redirect URIs: the Redirect URI from the setup page. Remove the example localhost URI.
    • Sign-out redirect URIs: leave empty.
    • Assignments: limit access to the groups who should sign in.
  4. Save. On the General tab, copy the Client ID and a Client secret.

Your sign-on and MFA policies stay in force. SaaSLayer relies on them: by default your Okta MFA is the MFA.

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
Issuer URLThe authorization server's issuer, e.g. https://acme.okta.com/oauth2/default. Never the bare Okta domain.
Client IDThe app's client ID.
Client secretThe app's client secret. It is stored write-only and never shown again.
User id sourcesub (Okta, Google, most providers). On a custom authorization server, sub is the immutable Okta user id (00u…).

Click Save identity provider. The issuer and user id source lock when the connection activates.

4. Prove your domain

Under Domains, add each email domain your people use (for example acme.com). Publish the TXT record it shows at your DNS provider, then click Check DNS for acme.com. 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, the client ID and the client secret are saved. Then sign in as a person assigned to the app: 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: SaaSLayer passes the connection as Cognito's identity_provider, so there is 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.

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

  • App integration name: the app's name, as your people know it.
  • 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 causes:

  • invalid_scope: the authorization server has no groups scope (step 1.2).
  • issuer-mismatch: the issuer was the bare Okta domain, or a different authorization server.
  • domain-mismatch: the person's Okta email is outside the verified domains.
  • No groups arrive: the groups claim isn't on the ID token, or its filter matches none of the person's groups.