Table of Contents
API reference

Enum DiscordOAuthCallbackStatus

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress.OAuth
Assembly
DisCatSharp.Hosting.AspNetCore.dll

Describes the outcome of processing a Discord OAuth callback.

public enum DiscordOAuthCallbackStatus

Fields

Success = 0

The callback completed successfully and the authorization code was exchanged.

InvalidRequest = 1

The callback request was malformed or Discord returned an OAuth error response.

InvalidState = 2

The callback state could not be matched to a pending authorization request.

SecurityFailure = 3

The callback failed an additional security validation step.

Examples include mismatched flow names, mismatched stored state, or a redirect URI that no longer matches the configured callback URI.

ConfigurationFailure = 4

The callback could not be processed because the OAuth ingress flow is not configured.

ExchangeFailure = 5

The authorization code exchange failed after the callback had been validated.