Skip to main content

Enterprise Managed Auth: Glean as the resource server

Enterprise Managed Auth (EMA) puts Glean MCP access under the control of your identity provider (IdP). You see and manage which AI applications connect to Glean, and which users and groups can use them, in the same place you govern the rest of your organization's access. Assigned users get Glean in those applications without connecting it or signing in themselves.

Without EMA, each user connects an AI application to Glean and signs in through a browser. With EMA, you assign the application and its users in your IdP instead. When an assigned user calls Glean from the application, your IdP issues a signed identity assertion for that user. The Glean OAuth Authorization Server exchanges that assertion for a Glean access token in a single back-channel request. The user is still identified by their corporate identity, and Glean enforces the same permissions as in the Glean UI. This flow is also known as Cross App Access (XAA). For the vendor-side view, see Enterprise Managed Auth in Claude and Cross App Access in Okta.

Coming soon

If your organization also connects ChatGPT or Codex to the Glean MCP server, set up EMA for Claude with a static OAuth client for now. Support for using the CIMD path alongside those applications is coming soon.

Supported configurations

EMA currently supports Claude (Team and Enterprise) as the requesting application and Okta as the IdP. This page will be updated as more applications and identity providers are supported. See Example: Claude and Okta.

Scope of this page

This page covers Glean as the resource server and authorization server: an external application (the requesting application) presents an IdP assertion to Glean, and Glean issues the access token for its own MCP server.

It does not cover Glean as the requesting application, where Glean uses Cross App Access to reach another vendor's MCP server on a user's behalf. That is configured separately under Admin console → Cross app access.

How it works​

The requesting application obtains a signed identity assertion for the user from your IdP and sends it to the Glean token endpoint with the JWT bearer grant urn:ietf:params:oauth:grant-type:jwt-bearer. Glean verifies the assertion against your trusted issuer, resolves the user by email, and returns an access token for the Glean MCP server. The user sees no redirect and no consent screen.

When EMA is enabled, Glean advertises the JWT bearer grant in its OAuth server metadata at https://<instance>-be.glean.com/.well-known/oauth-authorization-server.

For the underlying standards, see the MCP Enterprise-Managed Authorization extension, the JWT bearer grant specification, and the Identity Assertion Authorization Grant draft.

Access control with EMA​

EMA gives admins a single place to govern MCP access: the IdP. Security teams evaluating MCP often ask who can connect, from which application, and how to shut it off. With EMA, the IdP answers all three.

What your IdP controls​

  • Which application can connect. Only the requesting application you register in the IdP, configured by that application's owner for your whole organization, can obtain assertions for Glean. Users don't add Glean themselves.
  • Which users can connect. Assignment in the IdP decides who may use the connection. Unassigned users get no access, even if they belong to the same organization.
  • When access ends. Remove a user or group from the assignment, or disconnect the application, and the IdP stops issuing assertions for them. EMA never gives the application a refresh token, so there's nothing long-lived to revoke. Access ends when the current Glean access token expires (7 days by default). To make removal take effect sooner, contact Glean to shorten the access token lifetime for your deployment, or sign the user out of all sessions in Glean to end access right away.

What Glean controls​

  • Glean accepts an assertion only from the Trusted issuer you configure, and only from the application it was issued to: the assertion's client ID must match the client that presents it. Each assertion can be used once and can be valid for at most 5 minutes. Tokens carry only scopes that both the IdP authorized and you selected in Allowed scopes.
  • Glean resolves the user by email and enforces the same document permissions as the Glean UI. EMA never grants access to content the user can't already see. Content restrictions (redlists and greenlists) apply to MCP results exactly as they do in the Glean UI, because they decide what Glean indexes.
  • Turning off the Enterprise Managed Auth toggle stops every EMA exchange for your deployment.
Personal accounts

A personal account in Claude or another AI application can't use EMA, because it has no single sign-on session with your organization. EMA adds a managed path into Glean MCP. It doesn't by itself remove the standard sign-in path from other clients. To require that users reach Glean only through your managed deployment, also select Do not allow dynamic client registrations under Admin console → Third-party access (OAuth). That setting refuses browser sign-in for self-registered clients, including Claude's CIMD client ID, and doesn't affect EMA. See Restricting access to enterprise-managed deployments.

Prerequisites​

  • You have the Admin role in Glean.
  • The Glean OAuth Authorization Server is enabled (the default setting). See Glean OAuth Authorization Server.
  • At least one Glean MCP server is enabled (the default setting). See About Glean MCP server.
  • Users are connecting from an EMA-enabled application (for example, Claude) with single sign-on (SSO) configured to an XAA-enabled IdP.
  • You have the relevant permissions for configuring XAA in your IdP and SSO plus EMA in your requesting application. In Claude, this requires the Owner role; the Admin role is not sufficient. See Example: Claude and Okta.

Values you need​

You enter the following Glean values in your IdP and in the requesting application. Your Glean backend URL follows the pattern https://<instance>-be.glean.com. Find it in Admin console → About Glean under Server instance (QE). The examples below use acme.

ValueExampleUsed for
Glean OAuth issuerhttps://acme-be.glean.com/oauthIssuer URL when the IdP registers Glean as a resource server
Glean token endpointhttps://acme-be.glean.com/oauth/tokenRequired audience of the assertion
Glean MCP server URLhttps://acme-be.glean.com/mcp/defaultResource indicator in the IdP; server URL in the requesting application
Client IDGenerated by Glean when you create a static clientMust match between the IdP resource connection and the Glean client. Only needed when the requesting application does not support Client ID Metadata Documents (CIMD).
ScopeMCPScope the requesting application asks for

You will need the issuer URL from the IdP your requesting application uses for SSO, for example https://acme.okta.com.

Configure Glean​

  1. Go to Admin console → Users & permissions → Third-party access (OAuth).

  2. Confirm Enable Glean OAuth server is on.

  3. In the Enterprise Managed Auth section, turn on the toggle.

  4. Set the fields:

    FieldValue
    Trusted issuerYour IdP issuer URL. This must exactly match the iss claim in the assertion. Do not add a trailing slash or a path.
    Identifier claimThe assertion claim that carries the user's email. Typical values are email and sub.
    Allowed scopesInclude MCP. Access tokens issued through EMA are limited to the scopes you select here.
  5. Click Save.

Enterprise Managed Auth settings on the Third-party access (OAuth) page
note

Token exchange requests are rejected until a trusted issuer is configured, even when the toggle is on.

Create a static OAuth client (only if CIMD is not supported)​

A static client is only necessary when the requesting application does not support Client ID Metadata Documents (CIMD). With CIMD, the application identifies itself with a URL that hosts its client metadata, so Glean needs no pre-registered client. Claude supports CIMD and does not require this step.

If your requesting application does not support CIMD, create a static client with the JWT Bearer grant type:

  1. On the same page, next to Static clients, click Create client.
  2. Enter a Client name.
  3. Under Grant type, select JWT Bearer.
  4. Under Scopes, select MCP.
  5. Click Create.
  6. Copy the Client ID and Client secret. You enter the client ID in the IdP resource connection and both values in the requesting application. You cannot view the secret again.
Static clients panel on the Third-party access (OAuth) page

Configure your IdP and requesting application​

Both steps require elevated access in the respective product (for Claude, the Owner role). Glean does not control those products; see their documentation and the example below.

  • In your IdP: register Glean as a Cross App Access resource server using the Glean OAuth issuer, connect the requesting application to it with the Glean MCP server URL as the resource indicator, and assign the users who may connect. If you created a static client, use its client ID in the connection.
  • In the requesting application: remove any existing Glean connectors, add Glean as an organization-wide connector with the Glean MCP server URL, enable managed authorization, and run the application's connection test. Enter the static client ID and secret only if the application does not support CIMD. Users do not configure anything.

Verify​

  1. Sign in to the requesting application as an assigned user.
  2. Start a new session. The Glean connector is already enabled, with no activation step and no Glean sign-in.
  3. Ask the application to search Glean. The tool call succeeds.

Access token behavior​

  • EMA access tokens carry only the scopes in Allowed scopes. Requested scopes outside that list are dropped.
  • Glean does not issue refresh tokens for EMA exchanges. The requesting application obtains a new assertion from the IdP when a token expires. The user is not prompted.
  • Glean rejects assertions whose lifetime (exp - iat) exceeds 5 minutes, whose iss does not match the trusted issuer, or whose audience is not the Glean token endpoint.
  • Glean resolves the user by the email in the assertion. The user must already exist in Glean.
  • EMA sessions are subject to the same admin session controls as other OAuth sessions, including sign out of all sessions.

Turn off or restrict EMA​

  • To stop all EMA exchanges, turn off the Enterprise Managed Auth toggle. Existing access tokens expire at the end of their lifetime (7 days by default).
  • To stop one requesting application, delete its static client in Glean (if using a static client), or turn off access in the IdP.
  • To stop one user or group, remove the assignment in the IdP. See Access control with EMA.

Example: Claude and Okta​

Claude (Team and Enterprise) with Okta is the supported configuration today, using a Claude custom web connector.

In Claude​

You must be an Owner of the Claude organization. Admins cannot add custom connectors or configure managed authorization.

  1. Ensure SSO is configured for your Claude organization with your Okta org.
  2. Go to Organization settings → Plugins → Connectors and add a custom web connector. The pre-built Glean connector in Claude's connector directory does not support EMA.
  3. Enter your Glean MCP server URL, for example https://acme-be.glean.com/mcp/default.
  4. Set up managed authorization. Claude supports CIMD, so no Glean static client is needed.
  5. Run Claude's test connection flow. If the exchange fails, the test shows the token claims Claude sent, which helps pinpoint issuer, audience, and claim mismatches.
Use the organization Connectors page

Add and connect Glean from Organization settings → Plugins → Connectors. Do not use the Connect button on Settings → Customize → Connectors. That page is the personal connector list, and connecting from it starts a per-user OAuth flow instead of managed authorization.

For details, see Enterprise Managed Auth in Claude and Authorize MCP connectors for your entire organization.

In Okta​

Okta calls the requesting app an AI agent. The steps below follow Okta's Configure AI agent-to-app with XAA guide.

  1. Register Claude as an AI agent (the requesting app). See Configure the AI agent.
  2. Add Glean as a resource app using the Glean OAuth issuer, and turn on Cross App Access on this app only. Leave it off on the requesting app. See Configure XAA on an app integration.
  3. Open the requesting app (Claude) and use its Resource connections tab to connect the Glean resource app. Set the Glean MCP server URL as the resource indicator and enter the client ID from the Glean static client (unless using CIMD). See Configure the XAA connection.
  4. Assign the users or groups who may connect. See Configure user access.
Common Okta mistakes
  • Turn on Cross App Access on the resource app (Glean) only. It stays off on the requesting app (Claude).
  • Configure access from the requesting app, not the resource app. The resource app is selected under the requesting app's Resource connections page.

For background, see Cross App Access concepts. For the Admin Console reference, see Configure Cross App Access and Manage Cross App Access connections.

Troubleshooting​

SymptomLikely causeWhat to do
Requesting application does not offer managed authorization for GleanGlean OAuth server or EMA is off, so Glean does not advertise the JWT bearer grantEnable both in Third-party access (OAuth) and retry after a few minutes.
Token exchange returns invalid_grantTrusted issuer does not exactly match the IdP issuer, or the client ID in the IdP resource connection does not match the Glean clientCompare the values. Remove trailing slashes.
Token exchange returns unsupported_grant_typeEMA is not enabled for the deploymentTurn on the toggle, or contact your Glean representative to enable EMA for your deployment.
Exchange succeeds, but tool calls fail with 401 or 403Allowed scopes does not include MCP, or the user does not exist in GleanAdd MCP. Confirm the user's Glean email matches the IdP.
Users still see a Glean sign-in promptIn Claude, the pre-built directory connector is in use instead of the custom connector; an older Glean connector remains; or the user is not assigned in the IdPRemove the directory connector and any old connectors.

Claude: Use the test connection flow​

Before comparing values by hand, run the connector's test connection flow in Claude's connector settings. When an exchange fails, Claude displays the specific token claims it sent, including iss, aud, and the identifier claim. Compare them with your Trusted issuer, the Glean token endpoint, and the Identifier claim setting in Glean. This is the fastest way to spot a mismatch.

See also​