OBLYTECH Logo
OBLYTECH Logo

SAML 2.0 Single Sign-On Setup for ServiceNow Instances

SAML 2.0 sign-in for ServiceNow runs through the Multi-Provider SSO feature. You install the Integration – Multiple Provider Single Sign-On Installer, create a SAML identity provider record from metadata or manual values, and then point users at that provider from the login page. Much of the work is matching the record’s fields to what the identity provider expects.

Installing the plugin and choosing a sign-in method

External sign-in cannot begin until the Integration – Multiple Provider Single Sign-On Installer plugin, package com.snc.integration.sso.multi.installer, is installed. After installation, the SSO properties, tables and scripts that come with it become available for adjustment.

Setup has three stages: configuring the SSO properties, creating the identity providers, and configuring users to sign in through SSO. The feature supports OpenID Connect, SAML 2.0 and digest token authentication, and each needs different preparation. This guide covers the SAML 2.0 branch.

The official sign-in flow directs authentication to the local database when Multi-Provider SSO is not enabled, so test an administrator sign-in on the local path before you rely on it.

Turning on Multi-Provider single sign-on in the properties

Open All > Multi-Provider SSO > Administration > Properties and work through these settings.

Setting What it does
Enable Multi-Provider SSO Adds a Use external login link to the login page
Enable Auto Importing Updates the user table with the users held by the identity provider
Enable debug logging Shows debug messages in the content frame. It slows performance and uses disk space, so switch it on for troubleshooting
User identification field Names the user table field that holds the value the provider uses to identify a person. The default is user_name

Save the page, then tell users to choose the Use external login link when they sign in.

Creating a SAML 2.0 identity provider record

Go to All > Multi-Provider SSO > Identity Providers. To change an existing record, open it. To add one, select New > SAML.

There are three ways to supply the details. Tick the URL check box and enter the address of the provider’s metadata descriptor. Tick the XML check box and paste the metadata XML the provider generated. Or close the pop-up and type each value by hand. Whichever route you take, all required fields must be filled in.

Field Required What to enter
Name Yes A label for the identity provider record
Active Yes Switches the record on for authentication. Hidden until a Test Connection succeeds
Identity Provider URL Yes The provider’s own address. Each provider needs a unique value
Identity Provider’s AuthnRequest Yes The HTTP-Redirect binding address from the SingleSignOnService element of the metadata
Identity Provider’s SingleLogoutRequest No The provider’s logout endpoint address, taken from its SingleLogoutService element
ServiceNow Homepage Yes The instance address including the login page, which uses the navpage.do path
Entity ID/Issuer Yes The instance base address, without the login page
Audience URI Yes The same base address used for the issuer
NameID Policy Yes The value of the NameIDFormat element the integration uses
External logout redirect No Where users land after they sign out
Failed Requirement Redirect No Where failed sign-in requests are sent
Client Type No Iframe Embedded, where it applies. Add the field to the form if your configuration requires it

Testing the record before you activate it

From the Jakarta release onward, a record must pass a Test Connection before it can be activated. The Request and Response fields, which name the unique identifier carried in each message, are held back until a test succeeds as well.

Auto redirect and the glide_sso_id cookie

The Auto Redirect IdP, formerly called the Primary IdP, sends visitors who open the base instance address straight to one provider. The Default property and the Auto Redirect IdP property both mark a record as that configuration.

When you make a new auto redirect record active, the glide_sso_id cookie in the browser updates to point at it. The glide.authenticate.sso.update.idp.cookie system property controls this, and it is turned on automatically. Check which record holds the role before activating a replacement.

Keeping the entity, audience and homepage values distinct

The Entity ID/Issuer and the Audience URI both take the base instance address, without the login page. The ServiceNow Homepage is the exception: it takes the address with the login page included, as the navpage.do path shows.

These values are compared across the two systems, so a value in the wrong field is easy to enter and typically surfaces as a failed sign-in. Generate the metadata after the values and key settings are final, so the provider receives the same values the instance presents.

For the OpenID Connect counterpart, see OIDC on ServiceNow.

Encryption, signing and certificate handling

The Encryption And Signing tab is optional. You can use a self-signed certificate or one issued by a certificate authority. The supported keystores are BCFKS, which is FIPS-compliant and recommended, and the Java keystore. Separate certificates for encryption and signing are the stronger arrangement, and FIPS-approved mode requires them.

Setting up the keys takes four steps:

  1. Point the glide.authenticate.sso.saml2.keystore and glide.authenticate.sso.saml2.encryption.keystore system properties at the sys_id of each certificate.
  2. Enter the signing and encryption key aliases and passwords on the identity provider record. The aliases refer to key entries held in the SAML 2.0 SP Keystore.
  3. Select Generate Metadata.
  4. Upload the signing and encryption certificates from the generated XML to the identity provider.

Encrypt Assertion encrypts the assertion inside the SAML response, and the metadata carries the certificate the provider needs for that. Sign AuthnRequest, Sign LogoutRequest and Sign Logout Response ask the provider’s single sign-on service to accept signed messages of each type.

Certificates expire, so plan the reminders. Notify on expiration and Groups to notify on expiration decide who hears about an approaching expiry, while Warn in days to expire and Frequency set the timing.

Automatic user provisioning and group membership

The User Provisioning tab is optional. With Auto Provisioning User enabled, the platform creates a user record at sign-in when no matching user exists in the User table, using the details the provider sends. For a directory-based route to importing users, see ServiceNow and Active Directory Integration Guide. Update User Record Upon Each Login refreshes stored details on each SAML sign-in.

User groups applied to provisioned users lists the groups each new account joins. Membership carries whatever roles those groups grant, without manual assignment, so review the list before enabling provisioning on a live instance. For the access rules that apply once a user is signed in, see ServiceNow Access Control List (ACL) Explained.

Advanced settings for matching users and tuning timing

Field Purpose
User Field The User table field holding the unique value the provider needs to identify a person
NameID Attribute Leave blank unless you define a new NameID policy. If you do, name the User table field the NameID value should match
Create AuthnContextClass When ticked, requests a specific context class such as Password Protected Transport. When cleared, the provider chooses one
AuthnContextClassRef Method The URN of the login mechanism the provider should use
Single Sign-On Script The processing script. The default is MultiSSOV2_SAML2_custom
Clock Skew The timing tolerance described below
Metadata URL The source for importing the provider’s properties. When set, an expired certificate can be re-imported automatically

Clock Skew is the number of seconds allowed between the two attributes that make up the nonce in a SAML response. The default is 60. A valid response must fall between its notBefore and notOnOrAfter date-time values, so confirm that the two systems’ clocks agree before you change the figure.

Logout and failed sign-in redirects

The Identity Provider’s SingleLogoutRequest field holds the provider’s logout endpoint address, taken from its SingleLogoutService element. External logout redirect sets where users land after they sign out. Failed Requirement Redirect receives failed authentication requests. Its default is the error or logout page configured in the identity provider, and the glide.authenticate.failed_requirement_redirect system property can override it. For idle logout behaviour once a user is signed in, see glide.ui.session_timeout in ServiceNow: Idle Logout Settings.

How the login page routes users to an identity provider

Enabling Multi-Provider SSO adds a Use external login link to the login page. Clicking it starts the sign-in flow, which picks the provider from the user’s SSO source, from an auto-provisioning IdP when the user is not yet in the user table and auto-provisioning is enabled, or from the active default IdP. If more than one auto-provisioning IdP is enabled, the user chooses between them.

Activating the Domain Support – Domain Extensions Installer plugin turns on domain separation, which adds a Domain column to the task table and places existing records in the global domain. Plan how users will reach their provider before you roll the change out.

Sibling methods: OpenID Connect and digest authentication

For OpenID Connect, register an OIDC application with the provider first, then create the OIDC configuration through the Multi-Provider SSO plugin. Digest authentication uses its own Digest Properties form, which needs a secret passphrase; the example value used is 32 or more characters, and the MultiSSO_DigestedToken script. For the OAuth side of token-based access, see ServiceNow OAuth Profile Explained. Once the first Multi-Provider SSO identity provider record activates, the records tied to Multi-Provider SSO are the ones used.

If we use SSO, do SSO users still have a local login path, and which default MFA rule applies to them?

Yes. Turning on SSO does not by itself remove local credentials, so SSO-enabled accounts can keep a local login unless someone disables it on purpose. The default MFA rule covers specified local and LDAP interactive logins from the Yokohama release onward. As of November 2026, it excludes SSO logins and users with the external-user role.

What the local path means for SSO users

Local credentials can stay usable for SSO-enabled accounts, which gives each person two ways in. Picture a rollout that looks complete: people sign in through the provider, and nobody has tried a local login on the instance itself. That untested path is where a gap can hide.

Which MFA rule covers each sign-in path

The default MFA rule targets specified local and LDAP interactive logins. API Basic authentication does not require MFA under the default policy either. Read literally, a local interactive login by an SSO-enabled employee falls inside the default rule, while an SSO login by the same person does not. Test that reading before you depend on it, because a scope description is not the same as a working control.

Closing the gap on each path

  1. Decide which accounts keep local credentials. Emergency accounts are one such reason. Treat each one as high risk: lock the credentials down, require strong authentication, watch every use, and rehearse the recovery route.
  2. Choose where SSO sign-ins get MFA. Enforce it at the identity provider, or configure ServiceNow MFA for SSO. Record the choice, so the answer to which MFA rule applies is the same in every review.
  3. Disable local credentials for SSO users where the business case allows it. Make the change on a test account first and confirm the user can still reach the platform through the provider.
  4. Review external-user accounts separately. The default scope excludes them, so they need their own MFA control.

What to ask for before you sign off

  • An authentication matrix with one row for each population, covering employees, administrators, external users, emergency accounts and integrations. Columns should show the sign-in path, the MFA rule that applies and the evidence for it.
  • A test record showing a local login attempt by an SSO-enabled user, with the result.
  • The list of accounts that still hold local credentials, with an owner and a reason for each.
  • The identity provider’s MFA setting for SSO sign-ins, including any exceptions it allows.
  • For each integration, the authentication method it uses and whether that method needs MFA under the default policy. API Basic authentication does not, so those accounts need a separate control.

Frequently asked questions

How many identity providers can appear on the login page?

No provider list is documented for the login page. Enabling Multi-Provider SSO adds a Use external login link, and the sign-in flow then chooses the provider.

Why is the identity provider option missing from the login page?

Check that Enable Multi-Provider SSO is selected under All > Multi-Provider SSO > Administration > Properties, because that setting adds the Use external login link.

What does the Auto Redirect IdP setting change for visitors?

It sends visitors who open the base instance address to that provider. Activating a new auto redirect record updates the glide_sso_id cookie.

Why will a SAML record not activate?

The Active option stays hidden until a Test Connection succeeds. Run the test first and resolve whatever it reports.

What does Clock Skew control?

It sets the number of seconds allowed between the two attributes that make up the SAML response nonce. The default is 60, and a valid response must fall between its notBefore and notOnOrAfter times.