Skip to main content

Generic SAML

This guide provides instructions for configuring any SAML 2.0 identity provider as the SSO provider for Glean. Use it when your provider doesn't have a dedicated configuration guide. For background on how Glean handles SSO, see About Glean SSO.

Single Sign-On (SSO) is a user authentication service that permits a user to use one set of login credentials to access multiple applications. Glean supports SSO through OIDC (preferred) or SAML 2.0, both of which enhance security and simplify the login process for end users. If your provider also supports OIDC, Glean recommends OIDC.

Complete SSO setup in both your identity provider and the Glean Admin console.

info

Customized instructions for your Glean environment are available in the Admin console:

 Admin console → Users & permissions → Single sign-on (SSO)

Requirements and prerequisites​

Complete the following requirements:

  • Have administrator access to your SAML 2.0 identity provider
  • Have Admin or Setup Admin role access to Glean
  • Obtain your tenant backend domain from app.glean.com/admin/about-glean from the Server instance (QE) field
  • Have a basic understanding of SAML 2.0 and SSO concepts
warning

Glean restricts SSO authentication to pre-approved domains. Notify Glean of all domains that will be used for user authentication, or SSO will fail.

For example: company.com, company.co.jp, and subsidiary.co

Set up SSO before workspace initialization​

If you're configuring SSO through Central Workspace Setup (CWS), a service that allows admins to configure SSO before a dedicated workspace is provisioned, you'll receive a magic link from Glean to access CWS at app.glean.com/admin.

Configuring SSO in CWS doesn't activate SSO sign-in

Configuring or verifying SSO in Central Workspace Setup (CWS) doesn't activate SSO for sign-in. Continue using magic links until Glean provisions your dedicated workspace.

Once the workspace is ready, return to the SSO page, complete any tenant-specific configuration updates, and switch the deployment to SSO. See Activate SSO.

SAML provider steps​

To set your identity provider as your SSO provider, complete the following steps.

Create a SAML application​

Create a new SAML application in your identity provider's management console.

info

You'll need your tenant backend domain for this step. Find it at app.glean.com/admin/about-glean under Server instance (QE). To find your tenant ID, see Locate your Tenant ID, or contact Glean support if you're unsure.

Configure the following fields (some may not be required by your provider):

FieldValue
Single Sign-On (SSO) URLhttps://tenant_id-be.glean.com/authorization-code/callback
Recipient / Destination URLhttps://tenant_id-be.glean.com/authorization-code/callback
ACS (Consumer) URLhttps://tenant_id-be.glean.com/authorization-code/callback
Audience URI (SP Entity ID)https://tenant_id-be.glean.com
Default RelayStateLeave blank
Login URLhttps://tenant_id-be.glean.com/login
Logout URLhttps://tenant_id-be.glean.com/logout
SAML initiatorService Provider (Glean)
SAML signature elementAssertion
Name ID formatemailAddress
Sign requests?False
X.509 signatureStandard Strength Certificate (2048-bit)
X.509 signature algorithmSHA-512

Replace tenant_id-be.glean.com with your full backend domain from app.glean.com/admin/about-glean under Server instance (QE).

info

Glean doesn't sign SAML authentication requests, so your identity provider must not require signed requests.

SAML settings for CWS​

If you're configuring SSO through Central Workspace Setup (CWS) before Glean provisions your dedicated workspace, configuration URLs for your tenant ID don't exist yet. Direct your SSO configuration to Glean's central URLs instead. During CWS setup, you access Glean using a magic link provided by Glean.

FieldValue
Single Sign-On (SSO) URLhttps://apps-be.glean.com/central_sso/authorization-code/callback
Recipient / Destination URLhttps://apps-be.glean.com/central_sso/authorization-code/callback
ACS (Consumer) URLhttps://apps-be.glean.com/central_sso/authorization-code/callback
Audience URI (SP Entity ID)https://apps-be.glean.com

All other fields remain the same as in the previous table.

Glean uses these central values for CWS verification only. They don't enable SSO sign-in to CWS. After Glean provisions your workspace, replace them with your tenant-specific values from the previous table.

Copy the IdP metadata URL​

Glean requires a publicly accessible IdP metadata XML URL to configure SSO. Direct XML file uploads are not supported.

Glean Admin console steps​

To configure Glean to use your identity provider as your SSO provider, complete the following steps in the Glean Admin console.

Configure SAML​

  1. Navigate to  Admin console → Users & permissions → Single sign-on (SSO).

  2. Select Okta SAML from the SSO providers list.

    info

    Select Okta SAML for any SAML 2.0 provider, not just Okta. It's the option Glean uses for all SAML identity providers.

  3. Paste your IdP metadata URL into the Okta metadata URL field.

  4. Click Save.

warning

The metadata URL must be publicly accessible. Contact Glean support if you need assistance with hosting.

Activate SSO​

You must activate SSO in the Admin console before your users can sign in to Glean using SSO. Complete this step after Glean provisions your dedicated workspace. Until then, administrators continue to sign in to CWS with magic links, even after verification succeeds.

  1. Navigate to  Admin console → Users & permissions → Single sign-on (SSO).
  2. If you configured SSO during CWS, replace the central apps-be.glean.com URLs in your identity provider with the tenant-specific URLs from Create a SAML application.
  3. In the Switch to logging into Glean via SSO section, click Switch to Okta SAML SSO. Glean prompts you to confirm the switch.
  4. Confirm the switch.

After SSO activates, Okta SAML displays in the Glean Single sign-on (SSO) page with a Connected status. SSO is now active, and both administrators and end users sign in through your identity provider.

info

If you don't see the Switch to Okta SAML SSO button, your Glean tenant is still provisioning and you must wait to switch to using SSO.

You can skip ahead to the Add connectors section and return to this step later.

Test the configuration​

Test your SSO configuration to ensure proper authentication flow between Glean and your identity provider.

Test Glean to provider redirect​

  1. Open a new incognito or private browsing window and navigate to app.glean.com.
  2. Enter your work email and click Log in.

Glean redirects you to your SSO provider to complete the authentication flow.

tip

Test the configuration in an incognito or private browsing window to prevent existing cache, storage, sessions, and cookies from affecting the result.

Test provider to Glean redirect​

When redirected to your SSO provider, sign in. Your provider redirects you back to Glean as an authenticated user.

CWS verification​

This verification step requires the https://apps-be.glean.com/central_sso/authorization-code/callback SAML URL configured in your identity provider. See SAML settings for CWS for details.

  1. In the CWS setup wizard, click Complete verification.
  2. When prompted, sign in to your identity provider to return to Glean.

Verification confirms that your identity provider configuration works. Your SSO configuration is now Verified, but not Active: continue signing in to CWS with magic links.

Once Glean provisions your workspace, Glean prompts you to switch to SSO. Replace the central URLs with your tenant-specific values, then follow Activate SSO.

Troubleshoot SSO issues​

If issues persist or you encounter issues not mentioned below, contact Glean support.

IssueDescriptionFix
Redirect to your provider failsGlean can't reach your identity provider, or the metadata URL is incorrect or unreachable.Verify that the IdP metadata URL is publicly accessible and that the Single Sign-On (SSO) URL and Audience URI (SP Entity ID) match your tenant backend domain.
Sign-in fails after authenticating with your providerThe SAML assertion is missing required attributes, or the Name ID format is incorrect.Confirm that the Name ID format is emailAddress and that the assertion includes the user's email.
You can sign in, but Glean denies accessGlean can't validate the email domain being used for sign-in.Glean checks the email domain of every user that authenticates via SSO against the list of known company domains assigned to your tenant. Notify Glean support of all email domains that your users will authenticate from.
CWS SSO verification fails or does not redirect back to GleanThe central apps-be.glean.com SAML URL is missing from your identity provider.Add https://apps-be.glean.com/central_sso/authorization-code/callback as the Single Sign-On (SSO), Recipient, Destination, and ACS URL in your provider. See SAML settings for CWS for details.