Skip to content

McpOAuthOperationStatus

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result status of an OAuth authorization request.

public enum McpOAuthOperationStatus

AuthorizationFailed = 5

The provider rejected the code exchange, or the user cancelled authorization.

ConnectionFailed = 3

Could not connect to the server to get the authorization address (including timeout).

InvalidState = 4

The state is unknown or has expired (CSRF protection).

NotConfigured = 2

The server is not set up for OAuth, the flow is not McpOAuthAuthorizationMode.AuthorizationCode, or AgentPrism:Mcp:OAuthCallbackBaseUri is not configured.

Ok = 0

The request succeeded.

ServerNotFound = 1

No server is registered with this name.