API reference
Class DiscordOAuthCallbackRequest
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.OAuth
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Represents a Discord OAuth authorization-code callback request.
public sealed class DiscordOAuthCallbackRequest
- Inheritance
-
DiscordOAuthCallbackRequest
- Inherited Members
Remarks
Query parameter names are stored with case-insensitive lookup semantics so ASP.NET Core and synthetic test requests behave the same way.
Constructors
- DiscordOAuthCallbackRequest(string?, string?, string?, string?, Uri?, IReadOnlyDictionary<string, string?>?)
Represents a Discord OAuth authorization-code callback request.
Properties
- CallbackUri
Gets the absolute callback URI, when available.
- Code
Gets the authorization code received from Discord.
- Error
Gets the OAuth error returned by Discord, when available.
- ErrorDescription
Gets the OAuth error description returned by Discord, when available.
- QueryParameters
Gets the callback query parameters.
- State
Gets the callback state received from Discord.
Methods
- TryGetQueryValue(string, out string?)
Attempts to resolve a callback query parameter.