SSO with Okta
Use this guide when your organisation authenticates Guard users through Okta with SAML 2.0.
Guard SSO is configured by AutoRABIT Support in Keycloak. You create the Okta SAML app and send us the IdP metadata.
Before you start
You need:
Okta administrator access
From us:
Single sign-on URL (Reply URL / ACS URL)
Audience URI (SP Entity ID)
Step 1: Create the SAML application
Sign in to the Okta Admin Console.
Go to Applications → Applications → Create App Integration.
Choose SAML 2.0 → Next.
Enter an app name such as
Guard→ Next.
Step 2: Enter the Guard SAML values
On the Configure SAML tab:
Single sign-on URL
The Single sign-on URL from Support
Audience URI (SP Entity ID)
The Audience URI from Support
Name ID format
EmailAddress (recommended)
Application username
Email (recommended, so it matches Guard logins)
Leave other defaults unless Support asks for a change. Continue to the feedback step and finish creating the app.
Step 3: Configure attribute statements
In the SAML app, open Sign On (or edit SAML settings) and add attribute statements so Guard receives profile data on login.
firstName
Unspecified
user.firstName
First name
lastName
Unspecified
user.lastName
Last name
email
Unspecified
user.email
username
Unspecified
user.email (or the attribute that matches the Guard login)
Username match / account merge
If your Okta org already uses different attribute names, keep them consistent and tell Support the exact names so Keycloak mappers can be aligned.
For admin elevation, also release a role or group attribute that Support can map to TENANT-MANAGER. Common options:
Option A – group attribute
role
Unspecified
Filter groups that contain TENANT-MANAGER, or send the group name that Support will map
Option B – custom user attribute
Create a user profile attribute (for example guardRole) and set it to TENANT-MANAGER for admins. Release it as a SAML attribute named role.
Agree the exact attribute name and value with Support before go-live. The value they map is TENANT-MANAGER.
Step 4: Assign people and groups
Open the Guard app → Assignments.
Assign every person or group that should use Guard.
Make sure Guard admins are in the admin group or have the custom attribute that releases
TENANT-MANAGER.Everyone else receives standard Guard user access after Support finishes Keycloak mapping.
Step 5: Download IdP metadata and send it to us
Open the app → Sign On.
In SAML Signing Certificates, open Actions for the active certificate.
Choose View IdP metadata.
Save the page as an
.xmlfile (in Firefox choose All files if needed).
Reply to us with:
The IdP metadata XML file
The attribute statement names you configured (
firstName,lastName,email,username,roleor equivalent)How admins are identified (group name or custom attribute value
TENANT-MANAGER)Confirmation that Application username / username attribute matches existing Guard logins (usually email)
Your preferred button label on the Guard login page (for example
Contoso SSO)
We will complete the Keycloak side and confirm when you can proceed with testing.
Step 6: Test
Sign out of Guard.
Open the Guard login page and choose the SSO option for your organisation.
Sign in with an Okta test user.
Confirm:
A standard user lands with normal Guard access
An admin still has admin access after SSO
Existing Guard users are matched to their previous accounts
Optional: assertion encryption
Some organisations require encrypted SAML assertions. If you need this:
Ask us for an encryption certificate.
In Okta, edit the SAML app → Show advanced settings → set assertion encryption to encrypted and upload the certificate.
Re-test login after we confirm Keycloak is ready for encrypted assertions.
Troubleshooting
User reaches Guard as the wrong person / opaque username
Application username or username attribute does not match Guard login. Prefer email.
Admin loses admin rights after next SSO login
TENANT-MANAGER is not present in the SAML assertion, or the attribute name does not match what we mapped.
First or last name blank in Guard
firstName / lastName attribute statements missing or named differently than we expected.
Login fails after URL change
Single sign-on URL / Audience URI in Okta no longer match our Keycloak values. Ask us before changing them.
Last updated
Was this helpful?

