Skip to content

McpOAuthAuthorizationMode

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The MCP OAuth authorization flow.

[JsonConverter(typeof(JsonStringEnumConverter<McpOAuthAuthorizationMode>))]
public enum McpOAuthAuthorizationMode

AuthorizationCode = 0

The authorization code flow (Authorization Code + PKCE). Started from the admin UI with /oauth/start, redirected to the provider, and returns to /oauth/callback.

A single value: ModelContextProtocol.Core 2.0.0 supports only the Authorization Code (+PKCE) flow; ClientOAuthOptions.RedirectUri is a required field, and the library offers no non-interactive client-credentials flow. The value is still kept as an enum — if the SDK adds another flow later (for example, client_credentials), the extension point is ready.