Identity and people
Okta
Configure a custom SAML 2.0 app integration in Okta.
An Okta administrator connects Okta to Diakrin so your people sign in to the console with their Okta account. Use SAML for self-service setup. OIDC is available through your Diakrin onboarding contact.
Before you start
| You supply | Example | Comes from |
|---|---|---|
| Okta org URL | https://acme.okta.com | Your Okta Admin Console address, without -admin |
| Work-email domains | acme.com | The domains your people sign in with |
| Pilot users or group | Diakrin pilot | Your Okta directory |
| SAML SP Entity ID (SAML only) | urn:amazon:cognito:sp:<poolId> | The setup values on this page when signed in at app.diakrin.com/docs, or your Diakrin onboarding contact |
You need permission to create app integrations in Okta. Each person who signs in through Okta must already be a member of your Diakrin organization, with the same work email: invite them and have them accept with their current sign-in before their first Okta sign-in. SSO proves who the person is; it never creates a membership. A person who joined in the last hour may be refused once; ask them to retry after an hour.
Okta setup values
| Setting | Value |
|---|---|
| OIDC sign-in redirect URI | https://auth.diakrin.com/oauth2/idpresponse |
| OIDC issuer | https://<tenant>.okta.com (the Okta org authorization server) |
| OIDC scopes | openid email |
| SAML single sign-on URL (ACS) | https://auth.diakrin.com/saml2/idpresponse |
| SAML Audience URI (SP Entity ID) | urn:amazon:cognito:sp:<poolId> |
Copy the exact values from the setup values worksheet on this page when you read it signed in at app.diakrin.com/docs. Do not add a trailing slash.
Connect with OIDC (recommended)
- In Okta Admin Console, open Applications → Applications → Create App Integration.
- Choose OIDC - OpenID Connect and Web Application, then Next.
- Name the integration Diakrin. Under Grant type, keep Authorization Code only.
- Set Sign-in redirect URIs to
https://auth.diakrin.com/oauth2/idpresponse. Remove any other redirect URI and leave Sign-out redirect URIs empty. - Under Assignments, choose Limit access to selected groups and select your pilot group. Save.
- On the General tab, keep Client authentication set to Client secret. Note the Client ID.
- Send your Diakrin onboarding contact the issuer
https://<tenant>.okta.com, the client ID and your work-email domains.
The issuer is your Okta org URL itself, not a custom authorization server such as https://<tenant>.okta.com/oauth2/default. Diakrin refuses any other issuer for the Okta preset. If you use an Okta custom domain, follow the generic OIDC values in Connect your company SSO instead.
Diakrin asks Okta for the scopes openid email only. It reads the email claim and the sub claim, which is the immutable Okta user id. It does not map any email-verification claim from Okta.
Connect with SAML
- In Okta Admin Console, open Applications → Applications → Create App Integration.
- Choose SAML 2.0, name the integration Diakrin, then Next.
- Enter the values in the table below. Keep Use this for Recipient URL and Destination URL selected.
- Under Attribute Statements, add one statement named
email, name format Unspecified, valueuser.email. Add no other statement. - Finish, then assign your pilot users or pilot group on the Assignments tab.
- On the Sign On tab, copy the Metadata URL. In Settings → Sign-in → SSO identity provider, paste the metadata URL or upload the XML, then select Verify and connect.
| Okta field | Value |
|---|---|
| Single sign-on URL | https://auth.diakrin.com/saml2/idpresponse |
| Audience URI (SP Entity ID) | urn:amazon:cognito:sp:<poolId> |
| Name ID format | Persistent |
| Application username | Custom: user.getInternalProperty("id") |
Attribute statement email | user.email |
The application username becomes the SAML subject, so it must never change and never pass to another person. The Okta user id is both. A login or address can be reused for a new employee, which would let them sign in as the person who had it before, so do not use one as the application username.
Prove your domain
Diakrin routes a work email to your Okta connection only after you prove you control its domain.
- Add your domain in Settings → Sign-in → Domains to get a TXT value that starts with
diakrin-sso-proof=. It is shown once. - Publish it as a TXT record at
_diakrin-sso.<domain>, for example_diakrin-sso.acme.com. Subdomains such aseu.acme.comneed their own record. - Select Verify. Keep the record in place: Diakrin checks it again every day, and a domain whose record is gone stops routing to your connection.
You can check the record yourself before selecting Verify:
dig +short TXT _diakrin-sso.acme.comYou should see one line with the diakrin-sso-proof= value you published.
Activate and test
- Check that each pilot user is a member of your Diakrin organization. If not, invite them and wait until they accept.
- In a fresh browser session, open the console, choose Sign in with company SSO, enter a pilot user's work email and select Continue with SSO.
- Okta opens. Complete sign-in. You should return to the Diakrin console in your organization.
Then run the full pilot checklist.
If it fails
| Symptom | Cause | Fix |
|---|---|---|
| Okta shows an audience or destination mismatch | The ACS URL or Audience URI differs from the setup values | Compare them character by character, including trailing slashes |
| Okta says the user is not assigned | The person is not in the assigned group | Assign them to the Diakrin integration |
| The email goes to the normal sign-in, not Okta | The domain is not verified, its TXT record is gone, or the connection is not active yet | Check the record at _diakrin-sso.<domain> and ask your onboarding contact |
| Okta succeeds but Diakrin refuses the sign-in | The person is not yet a member of your organization, joined in the last hour, has a different email in Diakrin, or also belongs to another organization | Invite them and wait until they accept, retry after an hour, or ask your onboarding contact |
| A person who left can still start Okta sign-in | Removing them from Okta does not end a Diakrin session | Remove them from your organization in Diakrin as well; sign-in is refused once membership ends |
| The Okta preset is refused | The issuer is a custom authorization server or custom domain | Use https://<tenant>.okta.com, or the generic OIDC values |
Tell your onboarding contact before you rotate the SAML signing certificate or change the integration.
Official references: Create OIDC app integrations ↗, Create SAML app integrations ↗ and SAML field reference ↗.