Connect SAML 2.0 SSO
Connect any SAML 2.0 identity provider as your organization's sign-in for Herd, from Settings, without waiting on Herd: create a SAML app, give Herd its metadata, test it on yourself, then turn it on.
Overview
Herd connects to any SAML 2.0 identity provider: ADFS, PingFederate, Shibboleth, or Okta and Microsoft Entra ID over SAML. You set it up yourself in Settings → General → Access → Sign-in, in four steps:
Create the SAML app in your identity provider.
Enter its metadata in Herd.
Test sign-in, on yourself.
Turn on SSO.
Nothing changes for your organization until step 4. If anything is wrong, your organization keeps signing in exactly as it does today.
Sign-in is SP-initiated: it always starts at Herd's sign-in page, which sends people to your identity provider. Starting from a tile in your identity provider's portal (IdP-initiated sign-in) is not supported. If your identity provider shows a Herd tile, point it at the Herd sign-in URL from step 1.
Prerequisites
A Herd administrator account with the Organization › Manage admins and permissions permission (
org.permissions).In your identity provider, a role that can create a SAML 2.0 application and assign people to it.
Your organization's email domains on record with Herd. Herd links a sign-in to a Herd account by email only on your organization's own domains; ask Herd support to add them if they are not set.
Step 1: Create the SAML app
In Herd, open Settings → General → Access → Sign-in, choose SAML 2.0 and select Begin setup. Herd shows three values with copy buttons. Keep the page open.
SP entity ID (urn:amazon:cognito:sp:…)
Audience URI, Audience restriction, Identifier (Entity ID), Relying party trust identifier
ACS URL (ends in /saml2/idpresponse)
Single sign-on URL, Reply URL, Assertion consumer service URL, Recipient, Destination
Herd sign-in URL
Start URL, Sign-on URL, Default relay state target. Only if asked.
In your identity provider, create a SAML 2.0 application for Herd:
Paste the SP entity ID and the ACS URL. The ACS binding is HTTP-POST.
Send each person's email address. Release it as an attribute, which is the recommended way and the one to choose if you can. Herd accepts these attribute names:
Attribute nameUsually sent byemailAny identity provider, when you name the attribute yourself. Preferred.
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddressMicrosoft Entra ID and ADFS, by default.
mailShibboleth and ADFS (the LDAP name).
Herd reads one of them: the first in that order that your identity provider's metadata lists. When the metadata lists none of them, Herd reads
email, so name the attributeemail. The Single sign-on card shows which name Herd is reading once the setup is saved.Release each person's first and last name as well, so Herd shows their name instead of their email address. Herd accepts these attribute names, read the same way (the first your metadata lists, else
firstNameandlastName):First nameLast nameUsually sent byfirstNamelastNameAny identity provider, when you name the attributes yourself. Preferred.
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givennamehttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/surnameMicrosoft Entra ID and ADFS, by default.
Herd updates a person's name and email address from these at each sign-in, unless your directory sync or SCIM provisioning already manages them. If SSO is already live, reconfigure it (stage the metadata again) to pick up the name attributes.
If you cannot release an attribute, set the NameID to the email address (format
emailAddress). Herd falls back to an email-shaped NameID when the assertion carries no email attribute.Do not configure a transient NameID only: it changes at every sign-in, and Herd refuses metadata that offers nothing else.
Keep the assertion signed. Most identity providers sign it by default; Herd refuses an unsigned assertion.
Assign the people and groups who may sign in to Herd, including yourself.
Copy the app's metadata URL, or download its metadata XML file.
Back in Herd, select I've created the app.
Step 2: Enter its metadata
Give Herd your identity provider's metadata one of two ways:
Metadata URL
Your identity provider publishes the app's metadata at an https address that can be read without signing in, served as XML. Herd reads it once, when you save.
Metadata file
Upload the metadata XML you downloaded.
Either way, Herd keeps the document it read and signs people in against that document only. It never re-reads a metadata URL on its own: a change to what the URL serves has no effect until you ask for it (see Certificate renewal).
The metadata holds your identity provider's entity ID, its sign-on URL and its signing certificate. It holds nothing secret. Use the metadata for your one Herd application: a federation's aggregate file (many identity providers in one document) is refused.
Two options, both off by default. Leave them off unless your identity provider requires them:
Sign authentication requests. Herd signs each request it sends. Download Herd's signing certificate in step 1 and upload it to the SAML app in your identity provider.
Require encrypted assertions. Your identity provider encrypts each assertion to Herd. After you save, Herd shows Download encryption certificate on the test step: upload that certificate to the SAML app before you run the test.
Select Save and continue. Herd reads and checks the metadata before saving anything.
If the metadata is refused:
Does not describe a SAML 2.0 identity provider: you gave Herd the service provider's metadata, or another document. Use the identity provider's metadata for the Herd app.
Describes several identity providers: use your own application's metadata, not a federation aggregate.
Lists no single sign-on URL Herd can use: the app must offer the HTTP-Redirect or HTTP-POST binding, over
https.Carries no signing certificate: export the metadata again with the signing certificate included.
Could not read SAML metadata from that URL: Herd gives one answer for every problem with a metadata URL. The URL must be
https, be readable from the internet without signing in, and serve this application's metadata as XML (anapplication/xml,text/xmlor+xmlcontent type). If your identity provider cannot do that, upload the file instead.Your identity provider's metadata was not accepted: the document is SAML metadata, but something in it is unusable, most often an expired signing certificate. Export it again from your identity provider.
Step 3: Test sign-in
Select Run test sign-in. A new tab signs you in through your identity provider, as yourself. Herd checks that it signed you in with your own email address, then shows the result in both tabs. Your organization's sign-in has not changed.
If the test fails:
Released no email address: release the email address as an attribute named
email(step 1, item 2), then run the test again. If the Single sign-on card shows Herd reading another attribute name, your identity provider is not releasing that one for you.Not on one of your organization's email domains: Herd links sign-ins only on your organization's own domains. If the domain is yours, ask Herd support to add it.
Signed in as a different person: sign out of your identity provider in that browser, then sign in as yourself.
Herd recognizes you by a different sign-in ID: Herd stored a persistent NameID for you from this identity provider, and the test sent another. Check the NameID your identity provider sends. If it changed on purpose, edit the metadata, tick Reset stored sign-in IDs for this identity provider, save and test again.
Another person is already recognized by that sign-in ID: two people in Herd would share one NameID. Check the NameID your identity provider sends.
An error page from the sign-in itself, before Herd shows a result: the SAML response was refused. Check that the SP entity ID and ACS URL are pasted exactly, that the assertion is signed, that you are assigned to the app and, if you turned an option on in step 2, that the matching Herd certificate is uploaded.
Step 4: Turn on SSO
Within an hour of a passing test, select Turn on SSO. From then on:
Everyone in your organization signs in to Herd through your identity provider.
Your identity provider sets sign-in security, MFA included, and Herd's own MFA setting is hidden.
Only people assigned to the SAML app can sign in.
People who already use a Herd password
Admin accounts: Herd never lets an identity provider take over a Herd admin account that signs in with a Herd password just because it sends the same email address, whatever else is set:
You, the administrator running the setup, get through: your test sign-in proves which SAML identity is yours, and your first SAML sign-in after you turn SSO on (within 7 days of turning it on) moves your account.
Other admins who sign in with a password: once SSO is on, their first sign-in through it is refused, and the sign-in page says why and shows Sign in with your Herd password. They sign in that way, which takes them to the Single sign-on card, and choose Connect my account to SSO. That signs them in through your identity provider once, to prove which identity is theirs; their next sign-in through SSO, within 7 days, moves their account.
Everyone else added by directory sync: some people in your organization may have been added by directory sync (Okta or Microsoft Entra ID) and have signed in to Herd with a password. Herd does not let a SAML sign-in take over an account that is in use like that, unless you allow it with the option Let directory-synced people who are not admins, on our organization's email domains, move from their Herd password to SAML sign-in, shown when you turn SSO on. It is off unless you tick it, every time you turn a setup on. With it on, such a person's first SAML sign-in, with an email address on one of your organization's email domains, moves their account to SAML. With it off, they are refused until Herd support moves them. People who were not added by directory sync never needed it: their first SAML sign-in on your organization's email domains links their account by email, unless it is an admin account (above).
The option is shown on the Single sign-on card, with who changed it and when, and you can turn it off there at any time. Turning SSO off turns it off, and so does turning on any other identity provider, or a SAML identity provider with another entity ID, unless you tick it again. Every change is recorded in the audit log. Even with it on, Herd still refuses an admin account, a Herd staff account, an address that imitates another, an account already tied to a different SAML identity at your identity provider, an account in use through the identity provider your organization signs in with, and an account an administrator removed.
Who gets app access
Assigning someone to the Herd app lets them sign in. Whether that sign-in gives them the Herd app or only their own training depends on your access settings; see Who gets app access when they sign in. Usually every sign-in gets the app, as a learner who sees only their own training, or in your default group if you've set one (if that's Full Access, assign the Herd app only to people who should be admins); with the identity-provider switch on, the attribute you send decides, so give it only to people who should be admins. To let people who only take training reach it from the Herd tile in your app launcher, see Let People Reach Their Training from My Apps.
Send who gets the Herd app from your SAML identity provider
To let your identity provider decide who gets the Herd app, send an attribute named herd_access in the SAML assertion and tell Herd which value gets the Herd app. For what Herd does with it, see Your identity provider decides.
In your identity provider, on the Herd SAML app:
Add an attribute statement named
herd_access.Set its value to the person's group or role. Where your provider has a group attribute statement, give it a filter that matches the group that gets the Herd app (for example, groups that start with
herd-) so only those groups are sent. Otherwise set the value from a rule, for exampleherd-appfor members of your admin group.If the attribute can carry several values, Herd reads each one; any one that matches grants access. Do not put a comma inside a value, because Herd splits on commas.
In Herd:
Open Settings → General → Access → Sign-in. Under Who your identity provider gives the Herd app, enter the attribute name
herd_accessand the value your provider sends for people who get the app (for exampleherd-app), then select Save. Herd shows App-access claim saved. This section appears once single sign-on is on.Sign out of Herd and sign in again through your identity provider, so your own sign-in carries the attribute.
On the same card, turn on Let the identity provider's app-access claim decide who joins the default group. Herd refuses if your own sign-in did not carry the value; see Turning it on.
We recommend emitting herd_access for everyone who signs in, with a value such as learner for everyone else. When the attribute is always present, someone whose Herd app role you remove loses the app at their next sign-in without depending on your provider leaving the attribute out.
Who Herd signs in
Herd matches a SAML sign-in to a Herd account in this order:
The person's persistent NameID, when your identity provider declares one and they have signed in before.
Their email address, when it is on one of your organization's email domains. This is how everyone is matched the first time, including people who were added by directory sync or who had a Herd password.
A sign-in that matches no account creates one, on your organization's email domains only. An account that directory sync added and that is already in use with another sign-in (a Herd password that has been used, or another identity at your identity provider) is not taken over by an email match: Herd refuses that sign-in. Contact Herd support if someone is refused this way. Herd refuses a sign-in whose email address belongs to another person's account that is already tied to a different persistent NameID at the same identity provider.
People on another email domain
When Herd doesn't already know a person by their identity provider's id, it can only match them by email, and it links or creates their account only for an address on one of your organization's email domains. Herd support keeps that list for your organization: to add a domain (a contractor's company, an alias domain, a newly acquired company), contact Herd support. Until it is added, a person on that domain whom Herd doesn't already know is refused, and the sign-in page says:
Your identity provider signed you in, but your email's domain isn't set up for this organization in Herd. Ask your Herd admin to have it added, then sign in again.
The sign-in page never lists your organization's domains.
The domain list is not an access control: someone on another domain whom directory sync added, or who is already linked to your identity provider, still signs in. Control who can sign in at your identity provider.
Keep your user list current
SSO controls who can sign in. It never removes anyone from Herd: a SAML sign-in carries no signal that someone left. People you deactivate in your identity provider can no longer sign in, but they stay on Herd's Users list and keep receiving training until something tells Herd they left.
Turn on SCIM provisioning in your identity provider, so it adds the people you assign and removes the people you unassign or deactivate. For Okta, follow Okta SCIM Provisioning; for Okta, Microsoft Entra ID and Google Workspace, Herd's directory sync in Settings → Integrations works too.
Changing or turning off SSO
Test again re-runs the test against your live configuration without changing it. It uses the metadata Herd already holds.
Refresh metadata (setups saved from a metadata URL) reads the URL again and stages what it serves now. It is tested before it replaces the live configuration.
Reconfigure stages new metadata or options. They are tested before they replace the live configuration. Leave the metadata file empty to keep the saved one and change only the options. If your identity provider's NameID stops being persistent, Herd will not save the new metadata unless you tick Reset stored sign-in IDs for this identity provider: turning the setup on then forgets the NameIDs Herd stored, and people are linked by email again at their next sign-in. The reset is refused while the metadata still declares a persistent NameID; if the NameIDs your identity provider sends changed on purpose, contact Herd support.
Moving to a different SAML identity provider (another entity ID) while you sign in through the current one: Herd recognizes you by the sign-in ID the current provider sends, and the test sign-in through the new one refuses to replace it ("Herd already recognizes you by a sign-in ID from a different SAML identity provider"). Contact Herd support before you switch: support clears your stored sign-in ID, you run the test sign-in through the new provider, and you turn it on.
Disable SSO returns everyone to Herd passwords. You need a Herd password yourself to do this.
Certificate renewal
Your identity provider's signing certificate expires, and renewing it is something you bring to Herd: Herd does not pick up a new certificate on its own, from a file or from a URL.
Renew the certificate in your identity provider. If it lets you, add the new certificate beside the old one first, so both are valid for a while.
In Herd, choose Refresh metadata (metadata URL) or Reconfigure and upload the new metadata file.
Run the test sign-in, then Turn on SSO.
Sign-in keeps working against the old certificate until you turn the refreshed setup on. When the signing certificate has changed, people who are signed in to Herd are asked to sign in again.
Last updated