Table of Contents
API reference

Class DiscordOAuthIngressOptions

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

Configures the Discord OAuth callback flow exposed by the ASP.NET Core ingress package.

public sealed class DiscordOAuthIngressOptions
Inheritance
DiscordOAuthIngressOptions
Inherited Members

Remarks

ClientId, ClientSecret, and RedirectUri must be configured together before the default callback handler can exchange authorization codes.

Fields

DefaultPendingStateFlow

The default logical flow name used when storing pending OAuth state.

Properties

ClientId

Gets or sets the Discord application client identifier used for token exchange.

ClientSecret

Gets or sets the Discord application client secret used for token exchange.

IsConfigured

Gets a value indicating whether the OAuth callback flow has enough configuration to exchange codes.

PendingStateFlow

Gets or sets the expected logical flow name for pending OAuth state entries.

RedirectUri

Gets or sets the redirect URI that Discord should use for the authorization-code callback.