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 isn't explicitly listed in Glean's supported SSO providers.
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.
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
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
Setting up SSO before workspace initialization
If you're configuring SSO through Central Workspace Settings (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.
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.
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):
| Field | Value |
|---|---|
| Single Sign-On (SSO) URL | https://tenant_id-be.glean.com/authorization-code/callback |
| Recipient / Destination URL | https://tenant_id-be.glean.com/authorization-code/callback |
| ACS (Consumer) URL | https://tenant_id-be.glean.com/authorization-code/callback |
| Audience URI (SP Entity ID) | https://tenant_id-be.glean.com |
| Default RelayState | Leave blank |
| Login URL | https://tenant_id-be.glean.com/login |
| Logout URL | https://tenant_id-be.glean.com/logout |
| SAML initiator | Service Provider (Glean) |
| SAML signature element | Assertion |
| Name ID format | emailAddress |
| Sign requests? | False |
| X.509 signature | Standard Strength Certificate (2048-bit) |
| X.509 signature algorithm | SHA-512 |
Replace tenant_id-be.glean.com with your full backend domain from app.glean.com/admin/about-glean under Server instance (QE).
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 Settings (CWS) before your dedicated workspace has been provisioned, 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.
| Field | Value |
|---|---|
| Single Sign-On (SSO) URL | https://apps-be.glean.com/central_sso/authorization-code/callback |
| Recipient / Destination URL | https://apps-be.glean.com/central_sso/authorization-code/callback |
| ACS (Consumer) URL | https://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. After your workspace is initialized, update these URLs to your tenant-specific values.
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
-
Navigate to Admin Console → Users & permissions → Single sign-on (SSO).
-
Select Okta SAML from the SSO providers list.
infoSelect Okta SAML for any SAML 2.0 provider, not just Okta. It's the option Glean uses for all SAML identity providers.
-
Paste your IdP metadata URL into the Okta metadata URL field.
-
Click Save.
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.
- Navigate to Admin Console → Users & permissions → Single sign-on (SSO).
- In the Switch to logging into Glean via SSO section, click Switch to Okta SAML SSO. Glean prompts you to confirm the switch.
- Confirm the switch.
After SSO activates, Okta SAML displays in the Glean Single sign-on (SSO) page with a Connected status.
If you completed SSO setup before workspace initialization, you can now replace the central Glean URLs in your identity provider with the tenant-specific URLs from Create a SAML application.
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
- Open a new incognito or private browsing window and navigate to app.glean.com.
- Enter your work email and click Log In.
Glean redirects you to your SSO provider to complete the authentication flow.
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. After your workspace is initialized, you can update to tenant-specific URLs.
- In the CWS setup wizard, click Complete verification.
- When prompted, sign in to your identity provider to return to Glean.
Once your workspace initializes, Glean prompts you to switch to SSO for authentication.
Troubleshoot SSO issues
If issues persist or you encounter issues not mentioned below, contact Glean support.
| Issue | Description | Fix |
|---|---|---|
| Redirect to your provider fails | Glean 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 provider | The 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 access | Glean 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 Glean | The 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. |