Skip to main content

Configure SAML single sign-on (SSO)

Settings guide

Set up SAML single sign-on (SSO) so users authenticate to NIM through your existing identity provider instead of managing a separate NIM password.

SAML single sign-on (SSO) in NIMDirect link to SAML single sign-on (SSO) in NIM

SAML is the protocol NIM uses for single sign-on (SSO). With SAML SSO, users sign in to NIM through an identity provider (IdP) such as Microsoft Entra ID, Google Workspace, or Okta. This centralizes authentication and can apply the same sign-in policies, including multifactor authentication, that your organization already uses.

In the SAML exchange, NIM is the service provider (SP) and your sign-in platform is the IdP. The IdP issues an assertion that NIM uses to identify the user; metadata supplies the endpoints and certificates that let the two sides communicate. The OASIS SAML 2.0 Technical Overview explains these roles and the browser SSO flow. When troubleshooting, check the IdP metadata, assertion signing certificate, and user identifier against the values configured on both sides.

Before you beginDirect link to Before you begin

SAML can authenticate users through providers such as Microsoft Entra ID, Google Workspace, or Okta. Each user must exist in NIM’s Internal users table with a matching email address or username. To restrict a user to a specific SAML configuration, set AuthMethod to saml<configuration name>, such as samlEntra for a configuration named Entra. If AuthMethod is undefined, the user can use any authentication method configured in NIM. See Internal user AuthMethod rules.

Prepare HTTPS and the external hostnameDirect link to Prepare HTTPS and the external hostname

Before creating a SAML configuration for any provider:

  1. Enable HTTPS/SSL on NIM and confirm that you can open NIM using its intended HTTPS hostname.
  2. Go to Configuration > Settings > Preferences and set External host URL to the correct hostname, such as nim.domain.com. See Preferences.
  3. Choose the SAML configuration name you will use in NIM, such as Entra, Google, or CorporateSSO. Use that name consistently in the ACS URL and Internal users' AuthMethod values.
  4. Provision matching Internal users. To restrict a user to this SAML configuration, set AuthMethod to saml followed by the configuration name, with no space or separator.

Example names only: Choose one name for the SAML configuration you are creating, or use your own. You do not need to create all three configurations shown below. Each row illustrates how that chosen name determines the ACS URL and AuthMethod value.

Example configuration nameResulting example ACS URLResulting example AuthMethod
Entrahttps://nim.domain.com/api/v1/saml/sp/acs/EntrasamlEntra
Googlehttps://nim.domain.com/api/v1/saml/sp/acs/GooglesamlGoogle
CorporateSSOhttps://nim.domain.com/api/v1/saml/sp/acs/CorporateSSOsamlCorporateSSO

Replace nim.domain.com with your NIM external hostname. After creating a configuration, use its displayed ACS Callback URL and SP metadata to confirm the provider's values. The provider's app name is separate from the NIM configuration name.

Keep a recovery path

Keep a local administrator recovery path until SAML authentication has been tested successfully.

Choose your identity providerDirect link to Choose your identity provider

After completing the shared preparation above, follow the instructions for your identity provider:

Configure Microsoft Entra ID SAMLDirect link to Configure Microsoft Entra ID SAML

The enterprise application name in Entra and the SAML configuration name in NIM are separate settings:

SettingExample
NIM external hostnamenim.domain.com
Enterprise application name in EntraNIM
SAML configuration name in NIMEntra
Internal user AuthMethodsamlEntra
  1. Open the Microsoft Entra admin center and go to Entra ID > Enterprise applications > All applications. Microsoft's Add an enterprise application guide describes how to access this area.
  2. Select New application, then Create your own application.
  3. Enter an application name, such as NIM.
  4. Select Integrate any other application you don't find in the gallery (Non-gallery), then select Create.
  5. Once the application is created, go to Manage > Single sign-on.
  6. Select SAML.
Step 1 of 4

Configure Google Workspace SAMLDirect link to Configure Google Workspace SAML

Use Google's custom SAML app guide alongside the NIM-specific values below.

Create a custom app and download Google metadataDirect link to Create a custom app and download Google metadata

  1. Sign in to the Google Admin console as a super administrator.
  2. Open Apps > Web and mobile apps.
  3. Select Add app > Add custom SAML app.
  4. Name the app, such as NIM, and select Continue.
  5. On Google Identity Provider details, download the IdP metadata. Keep this setup open while configuring NIM in another tab.
Step 1 of 4

Configure another SAML identity providerDirect link to Configure another SAML identity provider

Use this procedure for an IdP other than Entra ID or Google Workspace. Complete the HTTPS and hostname preparation first. The example NIM configuration name is CorporateSSO.

Create the provider app and the NIM configurationDirect link to Create the provider app and the NIM configuration

  1. In your IdP, create a SAML 2.0 application for NIM and obtain its IdP metadata XML file. Use your provider's instructions for creating the app and signing certificate.
  2. In NIM, go to Configuration > Settings > SAML, select Add, and enter a configuration name such as CorporateSSO.
  3. Upload the provider's file in IdP Metadata and select Create.
  4. Select the new NIM configuration. Download its SP metadata and copy its displayed ACS Callback URL.
Step 1 of 3

Troubleshoot SAML sign-inDirect link to Troubleshoot SAML sign-in

Login fails with a signed authentication request flag conflictDirect link to Login fails with a signed authentication request flag conflict

Problem

Login fails with a signed authentication request flag conflict

Error message

ERR_METADATA_CONFLICT_REQUEST_SIGNED_FLAG

Resolution

  1. In NIM, go to Configuration > Settings > SAML and open the affected configuration.
  2. Open the Sp tab. Make sure Signed Authn Requests is unchecked, then save the configuration if you changed it.
  3. If it is already unchecked, select Signed Authn Requests and save. Then uncheck it and save again.
  4. Retry the login process.

Renew identity-provider metadata after certificate expirationDirect link to Renew identity-provider metadata after certificate expiration

Problem

Renew identity-provider metadata after certificate expiration

Likely cause

The identity provider's SAML signing certificate has expired or been renewed, and NIM still has the previous metadata.

Resolution

  1. Obtain a current metadata XML file from your identity provider.
  2. In NIM, go to Configuration > Settings > SAML.
  3. Edit the existing configuration for that identity provider.
  4. Select the IdP tab.
  5. Upload the current file in IdP Metadata.
  6. Select Update to save the configuration.
  7. Test sign-in with a controlled non-administrator user before restoring broader access.

Update the existing configuration; you do not need to create a new one for the same identity provider. Keep a local administrator recovery path and retain the prior metadata file according to your organization's change and retention process until testing succeeds.