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 = 0The callback completed successfully and the authorization code was exchanged.
InvalidRequest = 1The callback request was malformed or Discord returned an OAuth error response.
InvalidState = 2The callback state could not be matched to a pending authorization request.
SecurityFailure = 3The 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 = 4The callback could not be processed because the OAuth ingress flow is not configured.
ExchangeFailure = 5The authorization code exchange failed after the callback had been validated.