Skip to main content

Single Sign-On (SSO)

Configure single sign-on so that your users sign in to LangGuard with your identity provider (IdP).

Navigation: Settings > Single Sign-On (/settings/sso)

You must have the Admin role to see and change these settings.

Supported Providers​

Identity ProviderProtocolLogin buttonRole mapping
Microsoft Entra IDOpenID ConnectSign in with MicrosoftYes, from Entra security groups
Google WorkspaceOpenID ConnectSign in with GoogleNo
SAML 2.0SAML 2.0Sign in with SSOYes, from a groups attribute

Use the SAML 2.0 option for Okta, PingOne, PingFederate, and other SAML 2.0 identity providers. This page has the steps for Okta, PingOne, and PingFederate. The option is tested with PingOne and PingFederate. Other SAML 2.0 identity providers use the same values. See SAML 2.0 Setup.

How SSO Sign-In Works​

When you save an enabled SSO configuration:

  • The login page shows only the SSO button. Password sign-in and email-link sign-in are not available.
  • LangGuard creates a user account at the first sign-in of each person. You do not have to invite users first.
  • A user who already has a LangGuard account is linked to the IdP identity by email address at the first SSO sign-in.
  • A new user gets the Member role. If you enable role mapping, the IdP groups set the role.
  • Sessions that are open when you enable SSO stay open until they end. These sessions did not go through the IdP.
  • Users sign in at the LangGuard address of your organization, for example https://<your-organization>.app.langguard.ai. Only this address shows the SSO button. The login page at https://app.langguard.ai is not the address of an organization and has no SSO button.

LangGuard accepts each user that the IdP authenticates, if the allowed domains accept the email address. Control who can sign in with the user and group assignments of the application in your IdP.

warning

Run Test Authentication before you enable SSO. When SSO is enabled, nobody can sign in with a password. An incorrect configuration can lock out all users, including administrators.

tip

After you enable SSO, do the first SSO sign-in in a private browser window, and stay signed in in your current window. See Verify the Sign-In.

Settings Reference​

These settings apply to all providers:

SettingDescription
Enable SSOTurns on SSO sign-in for your organization. The setting has no effect until you click Save.
Identity ProviderMicrosoft Entra ID, Google Workspace, or SAML 2.0.
Allowed DomainsOptional. A comma-separated list of email domains that can sign in. Leave it empty to allow all domains. See Allowed Domains.

The page has these buttons:

ButtonDescription
SaveSaves the configuration.
Test AuthenticationStarts a sign-in with the values on the page, without saving them. See Test Authentication.
Delete SSORemoves the SSO configuration. Users can then not sign in with the IdP. You cannot undo this action.

The provider-specific settings are in the sections below.

Microsoft Entra ID Setup​

LangGuard connects to Microsoft Entra ID with OpenID Connect through an app registration.

Prerequisites​

  • Permission to create app registrations in your Microsoft Entra tenant
  • To use role mapping: permission to grant admin consent for application permissions
  • The LangGuard Admin role

Settings​

SettingDescription
Redirect URIRead-only. Copy this value to the app registration.
Azure AD Tenant IDThe Directory (tenant) ID of your Microsoft Entra tenant.
Client IDThe Application (client) ID of the app registration.
Client SecretThe client secret value of the app registration. After you save, LangGuard shows the secret as ********. Leave it unchanged to keep the saved secret.

Configuration Steps​

  1. In LangGuard:

    • Go to Settings > Single Sign-On.
    • Set Identity Provider to Microsoft Entra ID.
    • Copy the Redirect URI.
  2. In the Azure portal:

    • Go to Microsoft Entra ID > App registrations and click New registration.
    • Enter a name, for example LangGuard.
    • Under Redirect URI, select Web and paste the LangGuard Redirect URI.
    • Click Register.
    • On the Overview page, copy the Application (client) ID and the Directory (tenant) ID.
    • Go to Certificates & secrets and click New client secret. Copy the secret Value.
    • Recommended: go to Token configuration and add the optional claim email to the ID token. Without this claim, LangGuard uses the preferred_username claim as the email address.
    • Optional, for role mapping: go to API permissions, add the Microsoft Graph application permission GroupMember.Read.All, and click Grant admin consent.
  3. In LangGuard:

    • Enter the Azure AD Tenant ID, Client ID, and Client Secret.
    • Optional: enter the Allowed Domains.
    • Click Test Authentication and sign in with a Microsoft account.
    • Turn on Enable SSO and click Save.
    • Verify the sign-in in a private browser window.
note

Microsoft compares the redirect URI character for character. The redirect URI is specific to the address in your browser. If users sign in to LangGuard at more than one address, add one redirect URI for each address.

Google Workspace Setup​

LangGuard connects to Google Workspace with OpenID Connect through an OAuth client in the Google Cloud console.

Prerequisites​

  • A Google Cloud project in your Google Workspace organization
  • The LangGuard Admin role

Settings​

SettingDescription
Redirect URIRead-only. Copy this value to the OAuth client.
Hosted DomainOptional. Only accounts from this Google Workspace domain can sign in. LangGuard rejects personal Gmail accounts and accounts from other domains.
Client IDThe client ID of the OAuth client, for example 123456789.apps.googleusercontent.com.
Client SecretThe client secret of the OAuth client. After you save, LangGuard shows the secret as ********. Leave it unchanged to keep the saved secret.

Configuration Steps​

  1. In LangGuard:

    • Go to Settings > Single Sign-On.
    • Set Identity Provider to Google Workspace.
    • Copy the Redirect URI.
  2. In the Google Cloud console:

    • Go to APIs & Services > OAuth consent screen. Set User type to Internal so that only accounts in your organization can sign in.
    • Go to APIs & Services > Credentials and click Create credentials > OAuth client ID.
    • Set Application type to Web application.
    • Under Authorized redirect URIs, add the LangGuard Redirect URI.
    • Click Create. Copy the Client ID and the Client secret.
  3. In LangGuard:

    • Enter the Client ID and Client Secret.
    • Recommended: enter your Workspace domain in Hosted Domain, for example yourcompany.com.
    • Optional: enter the Allowed Domains.
    • Click Test Authentication and sign in with a Google Workspace account.
    • Turn on Enable SSO and click Save.
    • Verify the sign-in in a private browser window.
note

Google compares the redirect URI character for character. If users sign in to LangGuard at more than one address, add one redirect URI for each address.

Role mapping is not available for Google Workspace. Set user roles in User Management.

SAML 2.0 Setup​

Use SAML 2.0 with Okta, PingOne, PingFederate, or another SAML 2.0 identity provider.

The setup has these steps:

  1. In LangGuard, copy the service provider values.
  2. In your IdP, create a SAML application with these values. See the steps for Okta, PingOne, or PingFederate. For another IdP, see IdP Requirements.
  3. In LangGuard, import the IdP metadata. See IdP Settings in LangGuard.
  4. Run Test Authentication.
  5. Turn on Enable SSO, click Save, and verify the sign-in.

Prerequisites​

  • Admin access to your IdP
  • A LangGuard address that uses https
  • The LangGuard Admin role

Service Provider Values​

Set Identity Provider to SAML 2.0. The page shows the values that your IdP needs. Each value has a copy button.

ValueFormatUse
Entity ID (Audience)https://<your-langguard-address>/auth/saml/metadataThe service provider entity ID. The IdP puts it in the assertion audience.
ACS URLhttps://<your-langguard-address>/auth/saml/acsThe Assertion Consumer Service URL. The IdP sends the SAML response to this URL. Binding: HTTP-POST.
Metadata URLhttps://<your-langguard-address>/auth/saml/metadataThe service provider metadata. Import it in your IdP instead of entering each value.
Sign-in start URL (optional)https://<your-langguard-address>/auth/samlOptional. Starts a sign-in from LangGuard, for example from an application tile in the IdP portal. It does not receive the SAML response.

The values are specific to the address in your browser. If users sign in to LangGuard at more than one address, configure one IdP application for each address.

The ACS URL and the Sign-in start URL are different

The IdP must send the SAML response to the ACS URL, which ends with /auth/saml/acs. The Sign-in start URL ends with /auth/saml and does not receive the response. If the IdP sends the response to a different URL than the ACS URL, nobody can sign in.

Your IdP can use different names for these values:

LangGuard valueOktaPingOnePingFederateMicrosoft Entra ID (enterprise application)
Entity ID (Audience)Audience URI (SP Entity ID)Entity IDPartner's Entity IDIdentifier (Entity ID)
ACS URLSingle sign-on URLACS URLsAssertion Consumer Service URLReply URL (Assertion Consumer Service URL)
Sign-in start URLNot usedInitiate Single Sign-On URLNot usedSign on URL

IdP Requirements​

Configure the IdP application as follows:

  • Sign-in flow: SP-initiated SSO. See IdP-initiated sign-in.
  • Response binding: HTTP-POST to the ACS URL.
  • Signature: sign the assertion, the response, or both. Use RSA_SHA256.
  • Signed AuthnRequests: do not require them. LangGuard does not sign its requests.
  • Assertion encryption: off. LangGuard does not decrypt assertions.
  • Subject NameID: a stable value, for example the user ID or the email address. Do not use a transient NameID format.
  • Attributes: send the email address of the user. Optional: send a display name and the groups of the user. See Attribute Mapping.
  • Clock: the IdP clock must be within 3 minutes of the correct time.

Okta​

These steps use the names in the Okta documentation. The names in your Okta org can be different.

  1. In the Okta Admin Console, go to Applications and Resources > Applications. In some Okta orgs, this menu is Applications > Applications.
  2. Click Create App Integration. If Okta shows a list, select Classic experience.
  3. Select SAML 2.0 as the Sign-in method and click Next.
  4. On General Settings, enter an App name, for example LangGuard, and click Next.
  5. On Configure SAML, set:
    • Single sign-on URL: the LangGuard ACS URL. This URL ends with /auth/saml/acs.
    • Use this for Recipient URL and Destination URL: keep it selected.
    • Audience URI (SP Entity ID): the LangGuard Entity ID.
    • Default RelayState: keep it empty.
    • Name ID format: keep the default, Unspecified, or select EmailAddress. Do not select a transient format.
    • Application username: Email. You can also use Okta username if your Okta usernames are email addresses.
  6. Open Show Advanced Settings and make sure that:
    • Okta signs the response, the assertion, or both (Response and Assertion Signature).
    • Signature Algorithm is RSA-SHA256.
    • Assertion Encryption is off. LangGuard does not decrypt assertions.
  7. Click Next. On Feedback, select I'm an Okta customer adding an internal app and This is an internal app that we have created. Click Finish.
  8. On the Assignments tab, click Assign, then Assign to People or Assign to Groups. Assign the people and the groups that can sign in to LangGuard.
  9. Optional: add attribute statements. See Okta Attribute Statements.
  10. On the Sign On tab, copy the Metadata URL. Open it in your browser and save the XML. As an alternative, under SAML Signing Certificates, select Actions > View IdP metadata for the active certificate.
  11. In LangGuard, import the XML with Import IdP metadata. See IdP Settings in LangGuard.
Okta: Single sign-on URL is the ACS URL

In Okta, Single sign-on URL is the URL to which Okta sends the SAML response. Enter the LangGuard ACS URL (https://<your-langguard-address>/auth/saml/acs) there.

Do not enter the LangGuard Sign-in start URL (https://<your-langguard-address>/auth/saml), although the two names are almost the same. By default, Okta sends the response to the URL that is saved in the application, not to the ACS URL in the request from LangGuard.

With the wrong URL, Test Authentication and each sign-in fail with the message "Your identity provider sent the SAML response to the wrong URL". See SSO Works in One Browser but Not in Another.

Okta: assign the users

Okta lets a user sign in to LangGuard only if the user, or a group of the user, is assigned to the application. A user who is not assigned sees an Okta error, for example "User is not assigned to this application". Okta sends no response to LangGuard for such an attempt, so LangGuard shows no error and the audit log has no entry. To find the reason, open Reports > System Log in the Okta Admin Console.

Okta: the tile on the Okta End-User Dashboard

A click on the LangGuard tile starts an IdP-initiated sign-in. LangGuard then starts an SP-initiated sign-in automatically, and the user sees no second sign-in prompt. No extra setting is necessary. See IdP-Initiated Sign-In.

Okta Attribute Statements​

Attribute statements are optional. They are necessary in these two cases:

  • The NameID is not an email address. Then send the email address in an attribute.
  • You use role mapping. Then send the groups of the user in an attribute.

In current Okta orgs, you add attribute statements after you create the application:

  1. Open the application and select the Sign On tab.

  2. In the section for attribute statements, click Add expression.

  3. Enter a Name and an Expression from this table, and click Save.

    NameExpressionUse
    emailuser.profile.emailThe email address.
    firstNameuser.profile.firstNameThe display name, together with lastName.
    lastNameuser.profile.lastNameThe display name, together with firstName.
    groupsuser.getGroups({'group.type': {'OKTA_GROUP', 'APP_GROUP'}}).![profile.name]The names of the groups of the user, for role mapping.
  4. If you added groups, set Groups attribute to groups in LangGuard.

Some Okta orgs use the legacy configuration. It shows Attribute Statements (optional) and Group Attribute Statements (optional) on the Configure SAML step, or on the Sign On tab when you expand Show legacy configuration. The values there use a different syntax:

StatementNameValue
Attribute statementemailuser.email
Attribute statementfirstNameuser.firstName
Attribute statementlastNameuser.lastName
Group attribute statementgroupsFilter Matches regex with the value .*, to send all groups of the user.
Okta: send only the necessary groups

A user who is in many groups makes the SAML response large. LangGuard refuses a SAML response that is larger than 100 KB. If necessary, use a filter that sends only the groups that your role mapping uses. Run Test Authentication to see the group values that Okta sends.

For more details, see the Okta documentation:

PingOne​

  1. In the PingOne admin console, go to Applications > Applications and add an application. Select SAML Application.

  2. On SAML Configuration, select Import from URL and enter the LangGuard Metadata URL. Or select Manually Enter and set:

    • ACS URLs: the LangGuard ACS URL.
    • Entity ID: the LangGuard Entity ID.
  3. On the Configuration tab:

    • Signing: keep the default, Sign Assertion. LangGuard also accepts Sign Response and Sign Assertion & Response.
    • Signing Algorithm: RSA_SHA256.
    • Enforce signed AuthnRequest: off.
    • Initiate Single Sign-On URL (optional): the LangGuard Sign-in start URL. Do not enter it in ACS URLs.
    • Subject NameID: User ID or Email Address.
  4. On the Attribute Mappings tab, add these attributes:

    AttributePingOne mappingRequired
    emailEmail AddressYes, or set Subject NameID to Email Address
    nameFormatted name. Or send Given Name as given_name and Family Name as family_name.No
    memberOfGroup NamesOnly for role mapping
  5. On the Access tab, grant access to the groups that can sign in. Turn the application on.

  6. On the Configuration tab, click Download Metadata.

PingFederate​

  1. Create an SP Connection with the Browser SSO profile and the SAML 2.0 protocol.
  2. On Import Metadata, select URL and enter the LangGuard Metadata URL. Or set these values manually:
    • Partner's Entity ID: the LangGuard Entity ID.
    • Assertion Consumer Service URL: the LangGuard ACS URL, binding POST.
  3. In Browser SSO > SAML Profiles, select SP-Initiated SSO.
  4. In Assertion Creation > Attribute Contract, keep SAML_SUBJECT with a stable format, for example unspecified or emailAddress. Add email to the contract. Optional: add name and memberOf. Map them from your data store, for example from the LDAP attributes mail, displayName, and memberOf.
  5. In Protocol Settings > Signature Policy, keep the default (sign the response), or select Always sign the SAML Assertion.
  6. Do not enable assertion encryption.
  7. Export the connection metadata (System > Metadata Export), or download it from https://<pingfederate-host>/pf/federation_metadata.ping?PartnerSpId=<LangGuard Entity ID>.

IdP Settings in LangGuard​

SettingDescription
Import IdP metadataPaste the IdP metadata XML and click Import, or click Choose file to import a metadata file at once. The import fills IdP Entity ID, IdP SSO URL, and IdP Signing Certificates. LangGuard does not save the values until you click Save.
IdP Entity ID (Issuer)The entity ID of the IdP. The issuer of each assertion must be equal to this value. Okta format: http://www.okta.com/<external-key>. The external key is the value that starts with exk in the IdP SSO URL. PingOne format: https://auth.pingone.<region>/<environment-id>.
IdP SSO URLThe single sign-on URL of the IdP. LangGuard sends the authentication request to this URL. It must use https. Okta format: https://<your-okta-domain>/app/<application-name>/<external-key>/sso/saml.
IdP Signing CertificatesOne to five X.509 certificates. Paste them as PEM, or click Upload certificate to add a PEM file or a DER .cer or .crt file. A signature is valid if one of the certificates verifies it. The page shows the subject and the expiry date of each saved certificate, and marks expired certificates.
Email attributeOptional. See Attribute Mapping.
Name attributeOptional. See Attribute Mapping.
Groups attributeOptional. The attribute that holds the groups of the user, for example memberOf. Only role mapping uses it.

To get the metadata file:

  • Okta: open the application, then Sign On. Copy the Metadata URL, open it in your browser, and save the XML.
  • PingOne: open the application, then Configuration, then Download Metadata.
  • PingFederate: export the metadata of the SP connection.

LangGuard does not download IdP metadata from a URL. Import the file or paste the XML.

Attribute Mapping​

If you leave an attribute field empty, LangGuard uses the first of these attributes that the assertion contains:

FieldAttributes that LangGuard reads when the field is empty
Email attributeemail, mail, Email, emailAddress, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress, urn:oid:0.9.2342.19200300.100.1.3. Then the NameID, if it is an email address.
Name attributename, displayName, cn, http://schemas.microsoft.com/identity/claims/displayname. Then the given name and the family name together. If there is no name, LangGuard uses the part of the email address before the @.
Groups attributeNone. LangGuard reads groups only from the attribute that you set.

If you set the Email attribute, LangGuard reads the email address only from that attribute. If the attribute is missing, the sign-in fails.

IdP-Initiated Sign-In​

LangGuard does not accept an IdP-initiated SAML response as a sign-in, because the response is not connected to a request from the browser. Examples are a click on the application tile on the Okta End-User Dashboard, and a click on an application tile in the PingOne portal when the PingOne field Initiate Single Sign-On URL is not set to the LangGuard Sign-in start URL.

When LangGuard receives such a response, it starts an SP-initiated sign-in. The user already has an IdP session, so the user does not see a second sign-in prompt.

Signing Certificate Rotation​

  1. Add the new IdP certificate to IdP Signing Certificates. Keep the old certificate. Click Save.
  2. Activate the new signing key in your IdP.
  3. When the IdP signs only with the new key, remove the old certificate and click Save.

Limits​

  • The LangGuard address must use https.
  • LangGuard does not sign authentication requests.
  • LangGuard does not decrypt encrypted assertions.
  • LangGuard does not support Single Logout.
  • The SAML response must be smaller than 100 KB.
  • A sign-in must be complete within 10 minutes and in the same browser in which it started.

Test Authentication​

Use Test Authentication to make sure that the configuration works before you save or enable it.

  1. Enter the settings.
  2. Click Test Authentication. LangGuard opens the sign-in page of your IdP.
  3. Sign in at the IdP. LangGuard shows the result at the top of the SSO page.
note

The result always shows at the top of the SSO page. If the browser comes back to LangGuard and the SSO page shows no result, the IdP sent the response to a URL that is not the ACS URL. Correct the ACS URL in the IdP application and start the test again.

The test does not sign you in, does not change your session, and does not save the configuration. If you entered a new client secret, enter it again after the test, because LangGuard does not keep it in the browser.

A successful test shows:

FieldDescription
EmailThe email address that LangGuard read.
NameThe display name that LangGuard read.
Object ID, Google ID, or NameIDThe user identifier from the IdP.
GroupsSAML only. The values of the groups attribute. Use these values for role mapping.
Attributes receivedSAML only. The names of all attributes in the assertion. Use these names to set the attribute fields.

If the email domain is not in the Allowed Domains, the test passes with a warning. A real sign-in of that user fails.

Verify the Sign-In​

Test Authentication checks the values on the page. After you turn on Enable SSO and click Save, also make sure that a new sign-in works:

  1. Stay signed in to LangGuard in your current browser window. You can then correct the configuration if the sign-in fails.
  2. Open a private (incognito) browser window.
  3. Go to the LangGuard address of your organization and click the SSO button.
  4. Sign in at the IdP. LangGuard must open and show your name.
  5. Ask one user who never signed in to LangGuard to do steps 2 to 4.
Do not verify SSO in a browser that is signed in

A browser window that is signed in to LangGuard keeps its session when you enable SSO. It can show LangGuard although the SSO sign-in did not work. Only a browser with no LangGuard session, such as a private window, shows the result of a new sign-in.

If the sign-in fails, see SSO Works in One Browser but Not in Another. If no administrator can sign in, contact support.

Role Mapping​

Role mapping sets the LangGuard role of each user from the groups in your IdP. Role mapping is available for Microsoft Entra ID and SAML 2.0.

The Role Mapping card shows after you save an enabled SSO configuration.

Settings​

SettingDescription
Enable Role MappingSets the role from the IdP groups at each sign-in.
Default RoleThe role for users who are not in a mapped group.
Group MappingsA list of groups and the LangGuard role for each group: Admin, Member, or Viewer.

For a description of each role, see User Management.

Configure Role Mapping​

  1. Go to Settings > Single Sign-On. Make sure that SSO is enabled and saved.
  2. In the Role Mapping card, turn on Enable Role Mapping.
  3. Select the Default Role.
  4. Click Add Mapping:
    • Microsoft Entra ID: search for a security group in your directory, select the role, and click the group. This needs the GroupMember.Read.All application permission on the app registration.
    • SAML 2.0: type the group value exactly as your IdP sends it in the groups attribute, select the role, and click Add. Case is not important. To see the values that your IdP sends, run Test Authentication.
  5. Click Save Role Mapping.

How LangGuard Assigns Roles​

  • LangGuard sets the role at each sign-in. A change to the group membership in the IdP takes effect at the next sign-in.
  • If a user is in more than one mapped group, the role with the most permissions applies: Admin, then Member, then Viewer.
  • If a user is in no mapped group, the Default Role applies.
  • Microsoft Entra ID: if LangGuard cannot read the group membership, for example because the permission is missing, the Default Role applies. The sign-in does not fail.
  • SAML 2.0: if the Groups attribute is not set, all users get the Default Role.
  • If role mapping is disabled, existing users keep their roles and new users get the Member role.

Allowed Domains​

Use Allowed Domains to limit the email domains that can sign in:

  1. Go to Settings > Single Sign-On.
  2. In Allowed Domains, enter a comma-separated list of domains, for example yourcompany.com, subsidiary.com.
  3. Click Save.

LangGuard compares the full domain after the @. A subdomain such as eu.yourcompany.com does not match yourcompany.com. Add each subdomain to the list.

Troubleshooting​

Test Authentication Fails (SAML 2.0)​

MessageCause and correction
The SAML signature did not verify.The certificate in LangGuard is not the current signing certificate of the IdP. Import the IdP metadata again.
The SAML audience does not match.The entity ID in the IdP is not the LangGuard Entity ID for this address.
The SAML issuer does not match the IdP Entity ID on this page.The IdP Entity ID in LangGuard is not the issuer that the IdP sends.
The SAML assertion has expired or is not yet valid.The clocks differ by more than 3 minutes, or the assertion lifetime is too short.
The SAML assertion has no email address.Map an email attribute in the IdP, or set Email attribute to the attribute that holds the email address.
The SAML response does not answer the request LangGuard sent.The sign-in started in a different browser, took more than 10 minutes, or was sent two times. Start the test again.
The identity provider returned an error instead of an assertion.Read the error in the logs of your IdP. For example, the user is not assigned to the application.
The test took too long or was started in another browser.Start the test again in the same browser and complete it within 10 minutes.
Your identity provider sent the SAML response to the wrong URL.The ACS URL in the IdP is not the LangGuard ACS URL. In Okta, set Single sign-on URL to the ACS URL. Do not use the Sign-in start URL or the Entity ID.
The browser comes back to LangGuard, but the SSO page shows no result.The IdP sent the response to a URL that is not the ACS URL. Correct the ACS URL in the IdP application.

The IdP Shows a Redirect URI Error (Entra ID or Google Workspace)​

  • Copy the Redirect URI from the LangGuard SSO page to your app registration or OAuth client. The value must be the same character for character.
  • If users sign in at more than one address, add one redirect URI for each address.

Users Get the Wrong Role​

  • Make sure that Enable Role Mapping is on and that you clicked Save Role Mapping.
  • Make sure that the user is in the group in your IdP. The user must sign in again after a group change.
  • Microsoft Entra ID: make sure that the app registration has the GroupMember.Read.All application permission with admin consent.
  • SAML 2.0: make sure that the Groups attribute is set. Run Test Authentication and compare the Groups values with the group mappings.

SSO Works in One Browser but Not in Another​

A browser that is signed in to LangGuard keeps its session when you enable SSO. It shows LangGuard, but that is not a new SSO sign-in. Do the sign-in in a private browser window, then find the cause in this table:

What the user seesCause and correction
The login page has no SSO button.The address is not the LangGuard address of your organization, or SSO is not enabled and saved.
The IdP shows an error page.The IdP refused the user. Make sure that the user is assigned to the LangGuard application in the IdP. LangGuard gets no response, so the audit log has no entry.
The login page shows "Single sign-on is not set up correctly".SAML 2.0: the IdP sent the response to the Sign-in start URL or to the Entity ID. Set the ACS URL in the IdP to the LangGuard ACS URL. In Okta, this field is Single sign-on URL.
The browser comes back to the login page with no message.SAML 2.0: the IdP sent the response to a different URL than the ACS URL. Correct the ACS URL in the IdP application.
The login page shows "Single sign-on failed".LangGuard refused the response from the IdP. Run Test Authentication to see the reason, or read the SSO login failed entry in the Audit Log.
The login page shows "The sign-in took too long".The sign-in took more than 10 minutes, or it ended in a different browser than the browser in which it started. Start the sign-in again.

Users Cannot Sign In​

  • Make sure that the email domain of the user is in Allowed Domains, or that the list is empty.
  • Make sure that the user is assigned to the LangGuard application in your IdP.
  • Google Workspace: if Hosted Domain is set, make sure that the user account is in that domain.
  • SAML 2.0: make sure that no signing certificate has expired. The SSO page marks expired certificates.
  • If the sign-in works in your browser but not for other users, see SSO Works in One Browser but Not in Another.