Skip to content

Update an authorization server for an MCP server

Request

Beta
OAuth 2.0 scope:
  • okta.resourceServers.mcpServers.manage
Admin roles:
  • SUPER_ADMIN

Updates an authorization server for a third-party Model Context Protocol (MCP) server. Use this request to perform partial updates on authorization server properties. You can't change the issuer.

What you can change depends on the authorization server type:

  • MANUAL and DISCOVERABLE authorization servers accept every field except the issuer.
  • OIN (catalog-sourced) authorization servers accept only subjectMappingExpression, tenantId, and protocolConfigured, and only when identity assertion is enabled for the org. The catalog owns all other fields, and a request that changes them returns a 400 error.
  • OKTA authorization servers accept only protocolConfigured, and only when identity assertion is enabled for the org. A request that changes any other field returns a 400 error.

A request that changes nothing still returns 202 with an operation that's already completed.

Path
mcpServerIdstringrequired

ID of an MCP server

Example:ems8nUa7p0g4zrZbs2f4
authorizationServerIdstringrequired

ID of an authorization server

Example:eas8nUa7p0g4zrZbs2f4
Bodyapplication/merge-patch+json
authorizationEndpointstring, (uri)

URL of the authorization endpoint

Example:"https://auth.external.com/oauth/authorize"
grantTypesSupportedArray of strings or null

OAuth 2.0 grant types supported by this authorization server

Items Enum:"authorization_code""refresh_token"
Example:
[ "authorization_code", "refresh_token" ]
protocolConfiguredArray of strings or null, non-empty

The mechanism(s) the admin has enabled for obtaining tokens for the MCP server through this authorization server — some combination of STS and IDENTITY_ASSERTION. Optional.

  • When omitted, the stored value is unchanged.
  • When null, the value resets to the type's default: [IDENTITY_ASSERTION] for an OKTA authorization server and [STS] for all other types.
  • An empty array is rejected with a 400 error.
  • Otherwise the array replaces the stored value exactly, so send every mechanism you want to keep.
  • Every value must be in the authorization server's protocolSupported, or the request is rejected with a 400 error.
  • For an OKTA authorization server, any combination of STS and IDENTITY_ASSERTION is allowed.
  • Removing a mechanism is rejected with a 409 error while an active managed connection of that kind uses this authorization server through any MCP server.
Example:
[ "STS", "IDENTITY_ASSERTION" ]
registrationEndpointstring or null, (uri)

URL of the OAuth 2.0 Dynamic Client Registration endpoint

Example:"https://auth.external.com/oauth/register"
subjectMappingExpressionstring or null

Okta Expression Language formula that computes the sub claim value for the ID-JAG token minted for this authorization server. Only meaningful when protocolConfigured includes IDENTITY_ASSERTION.

Example:"user.email"
tenantIdstring or null, [ 1 .. 255 ] characters

Optional identifier of the tenant at the resource authorization server (for example, a Slack workspace ID). When set, Okta emits it as the aud_tenant claim in the ID-JAG token minted for this MCP server's authorization server. Use null to clear the value.

Example:"T024BE7LD"
tokenEndpointstring, (uri)

URL of the token endpoint

Example:"https://auth.external.com/oauth/token"
tokenEndpointAuthMethodstring or null

The client authentication method used when presenting tokens to the authorization server's token endpoint. Valid values are client_secret_post and client_secret_basic. If omitted, the stored value is unchanged.

Example:"client_secret_basic"
curl -i -X PATCH \
  https://subdomain.okta.com/resource-servers/api/v1/mcp-servers/ems8nUa7p0g4zrZbs2f4/authorization-servers/eas8nUa7p0g4zrZbs2f4 \
  -H 'Content-Type: application/merge-patch+json' \
  -d '{
    "authorizationEndpoint": "https://auth.example.com/v2/oauth/authorize",
    "tokenEndpoint": "https://auth.example.com/v2/oauth/token",
    "registrationEndpoint": "https://auth.example.com/v2/oauth/register"
  }'

Responses

Accepted

Headers
Locationstring, (uri)required

URL to poll for operation status. See Resource Server Operations.

Example:"https://{yourOktaDomain}/resource-servers/api/v1/operations/op-1a2b3c4d"
Response
No content