Skip to content

The MCP User-Based Access Token Credential Provider: Credential Providers obtain the specific access credentials—such as API keys, OAuth tokens, or temporary cloud credentials—that Client Workloads need to authenticate to Server Workloads.Learn more retrieves and manages OAuth 2.0 credentials on a per-user basis for Model Context Protocol (MCP) server access. The standard OAuth 2.0 Authorization Code Credential Provider stores tokens for the Aembit administrator who authorizes the integration. This type stores tokens for each end user who authenticates through the MCP authorization flow.

Use this Credential Provider with the MCP Identity Gateway: A component that brokers MCP traffic between MCP clients and target MCP servers, validating authorization and presenting Aembit-managed credentials on each request.Learn more, where multiple users access MCP servers through a shared MCP Identity Gateway. Each user completes their own OAuth consent flow, and Aembit stores and rotates their tokens individually.

For background on how this type works and when to use it, see About MCP User-Based Access Tokens.

Create an MCP User-Based Access Token Credential Provider

Section titled “Create an MCP User-Based Access Token Credential Provider”

To create an MCP User-Based Access Token Credential Provider, follow these steps:

  1. Log in to your Aembit Tenant: Aembit Tenants serve as isolated, dedicated environments within Aembit that provide complete separation of administrative domains and security configurations.Learn more, and go to Credential Providers in the left sidebar.

  2. (Optional) In the top right corner, select the Resource Set that you want this Credential Provider to reside.

  3. Click + New, which displays the Credential Provider pop out menu.

  4. Enter a Name and optional Description.

  5. Under Credential Type, select MCP User-Based Access Token, revealing more fields.

  6. Fill out the remaining fields:

    FieldDescription
    MCP Server URLThe base URL of the target MCP server (for example, https://dbc-a1044c90-95d9.cloud.databricks.com/api/2.0/mcp). Click Discover to auto-populate the Authorization URL and Token URL from the server’s metadata.
    Callback URLAuto-generated and read-only. This is the URL Aembit uses to receive OAuth authorization codes during the user consent flow. It takes the form https://<tenantId>.id.<region>.aembit.io/mcp-auth/userauth/<cp-id>/callback. Aembit assigns the final value when you click Save, so save the Credential Provider before you copy it. Register this URL with the MCP server’s own OAuth authorization server if it requires callback URL registration.
    Client IDThe OAuth client identifier for the MCP server. Obtain this from the MCP server vendor’s configuration or by using a dynamic client registration endpoint.
    Client SecretThe OAuth client secret, if required by the MCP server.
    ScopesSpace-separated list of OAuth scopes (for example, all-apis offline_access). Discover may auto-populate this field.
    Resource(Optional) The resource parameter for the token request. Required only if the MCP server can’t use the auto-generated value. Some providers, such as Microsoft, require this field.
    Authorization URLThe endpoint where the user authenticates and grants consent. Auto-populated by Discover if the MCP server supports metadata discovery.
    Token URLThe endpoint that exchanges authorization codes for access tokens. Auto-populated by Discover.
    Introspection URL(Optional) The token introspection endpoint, if supported by the MCP server.
    PKCE RequiredEnable this if the MCP server requires Proof Key for Code Exchange (PKCE). Recommended for security.
    Additional Parameters(Optional) Key-value pairs for custom parameters to include in the token request.

    The form should look similar to the following screenshot: MCP User-Based Access Token Credential Provider form

  7. Click Save.

    Aembit displays the new Credential Provider in the list of Credential Providers.