SSO AuthenticationSAML 2.0
Okta
Configure Okta as a SAML 2.0 identity provider for Safeguard.
Okta
Example values
The tenant-specific values (the sg_ab12cde parts) show the shape only — Safeguard displays your real ACS URL and SP Entity ID in the Add Provider dialog after you click Save. This table makes it unambiguous which value goes on which side.
In Okta — the SAML app / SP details (you enter these at the IdP):
| Field | Example value |
|---|---|
| ACS URL (Single sign on URL) | https://api.safeguard.sh/auth/idp/realms/sg_ab12cde/broker/okta/endpoint |
| SP Entity ID / Audience | https://api.safeguard.sh/auth/idp/realms/sg_ab12cde |
| Name ID format | EmailAddress |
email attribute | the signed-in user's email (user.email) |
In Safeguard — Add Provider → SAML 2.0 (you copy these from the IdP):
| Field | Example value |
|---|---|
| Alias | okta |
| Display Name | Sign in with Okta |
| SSO Service URL | https://<your-org>.okta.com/app/<app-id>/sso/saml |
| Entity ID | http://www.okta.com/<app-id> |
| X.509 Certificate | the PEM block below |
-----BEGIN CERTIFICATE-----
MIIDdDCCAlygAwIBAgIGAX...(full cert from your IdP)...P3B/k0SolrFYPo
-----END CERTIFICATE------ In the Okta admin console, go to Applications → Create App Integration → SAML 2.0.
- Name the app and continue to Configure SAML:
- Single sign on URL: the ACS URL Safeguard shows after Save
- Audience URI (SP Entity ID): the SP Entity ID Safeguard shows after Save
- Name ID format:
EmailAddress - Application username:
Email
- Under Attribute Statements (Okta labels this section "optional," but this row is required for Safeguard), add: Name
email, Name formatUnspecified, Valueuser.email. Okta's "Application username" setting above controls the Name ID, not this — Safeguard needs both. - Click Next, then Finish.
- On the app's Sign On tab, click View SAML setup instructions (or download the Identity Provider metadata) to get the Identity Provider Single Sign-On URL, Identity Provider Issuer, and X.509 Certificate.
- In Safeguard, click Add Provider → SAML 2.0 → Okta, and enter those three values.
- Back in Okta, go to the Assignments tab and assign people or groups.
- Click Test in Safeguard to confirm.
Common errors: users can authenticate at Okta but never appear correctly in Safeguard — check that Application username is set to Email, not a bare username. Sign-in works for you but not teammates — they haven't been added under the app's Assignments tab yet.