SSO with PingOne Cloud
Use this guide when your organisation authenticates Guard users through PingOne Cloud with SAML 2.0.
Before you start
You need:
PingOne administrator access to the environment that holds your users
From us:
Single sign-on URL (also called the ACS URL or Reply URL)
Entity ID (also called the Audience URI or SP Entity ID)
Step 1: Create the SAML application
Sign in to the PingOne admin console.
Go to Applications → Applications.
Select the + icon to add an application.
Enter an application name such as
Guardand, if you want one, a short description.Choose SAML Application and select Configure.
If PingOne asks how to provide the service provider details, choose Manually Enter.
Step 2: Enter the Guard SAML values
Enter these values:
ACS URL
The Single sign-on URL
Entity ID
The Entity ID
Subject NameID Format
Set Subject NameID Format to Email so PingOne sends the user email address as the subject of the SAML response. In PingOne this shows as urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress. Guard uses this value to match the user to their Guard account, so it needs to be the same value as the Guard login, usually the email address.
Leave the other settings at their PingOne defaults. In particular, keep the default signing key and keep responses or assertions signed. PingOne cannot connect to Guard until Keycloak has been configured with this application, so do not test the connection yet.
Save the application.
Step 3: Configure attribute mappings
Open the Guard application and go to Attribute Mappings. PingOne always sends a subject value, called saml_subject, which Guard uses to match the user. Map it to the value that matches the existing Guard login, usually the email address.
Add the following mappings so Guard receives profile data on login.
saml_subject
Email Address (or Username if that matches the Guard login)
Username match / account merge
firstName
Given Name
First name
lastName
Family Name
Last name
email
Email Address
username
Email Address (or the attribute that matches the Guard login)
Username match / account merge
If PingOne shows different attribute names in your environment, keep them consistent and tell us the exact names you have used.
Guard roles also come from PingOne. Release a group attribute that we can map to the Guard roles:
role
Group Names
Sends the names of the PingOne groups the user belongs to
Create two PingOne groups, one for standard users and one for admins:
Guard users (or your own name)
Everyone who should use Guard but not administer it
Standard Guard user
Guard Admins (or your own name)
The people who administer Guard
TENANT-MANAGER
Every Guard user needs to be in one of these two groups. A user who is in neither group signs in without a Guard role. A user only needs to be in the admin group if they administer Guard, as that group gives full admin access.
Tell us both group names exactly as you have created them, including spaces and capital letters. We map each group to its Guard role in Keycloak, and the names have to match.
Agree the exact attribute name and group names with us before go-live. A role assigned only inside Keycloak or Guard does not stick across SSO logins, because the PingOne assertion is checked on every login.
Step 4: Assign users and groups
Open the Guard application and go to Access.
Add every user or group that should access Guard. Users need to exist in the PingOne environment and be enabled for the application before they can sign in.
Put every Guard user into one of the two groups from Step 3, admins in the admin group and everyone else in the standard user group.
Make sure Guard admins belong to the admin group and not only to the standard user group.
Step 5: Download the IdP metadata and send it to us
Open the Guard application and go to Configuration.
Download the metadata file using Download Metadata, or copy the metadata URL if your version of PingOne shows one instead.
Keep a note of the signing certificate. You do not normally need to send it separately, because it is included in the metadata.
Reply to us with:
The IdP metadata XML file, or the metadata URL
The attribute names you configured (
saml_subject,firstName,lastName,email,usernameandrole, or your equivalents)The names of both PingOne groups, the standard user group and the admin group
Confirmation that the subject and
usernamevalues match existing Guard logins (usually email)Your preferred button label on the Guard login page (for example
Contoso SSO)
We will then 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 a PingOne 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 (no unexpected duplicates)
Optional: assertion encryption
Some organisations require encrypted SAML assertions. If you need this:
Ask us for an encryption certificate.
In PingOne, open the Guard application and edit the SAML configuration to encrypt the assertion, then upload the certificate.
Re-test login after we confirm Keycloak is ready for encrypted assertions.
Troubleshooting
User reaches Guard as the wrong person or with an opaque username
Subject NameID Format is not set to Email, or the saml_subject or username attribute does not match the Guard login. Prefer email and check the mapping in Step 3.
Admin loses admin rights after the next SSO login
The admin is not in the PingOne admin group, or the role attribute is not being sent.
Standard user has no Guard access or the wrong access after SSO
The user is not in the standard user group in PingOne, or the group name does not match what we mapped. Every Guard user needs to be in one of the two groups from Step 3.
First or last name is blank in Guard
The firstName or lastName mapping is missing, or it is named differently from what we mapped.
Login fails after a URL change
The ACS URL or Entity ID in PingOne no longer matches the values we configured. Ask us before changing them.
User is told they cannot access the application in PingOne
The user has not been given access to the Guard application. Check Step 4.
Last updated
Was this helpful?

