OAuthProviderResolvedEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Provides data for the ProviderResolved event: the one seam that patches the provider descriptor — endpoints, issuer, default scopes, subject claim and name claim — for national clouds, GitHub Enterprise Server hosts, proxied token endpoints and custom providers, which avoids a public provider hierarchy. Values assigned here override the preset and discovered values, are checked exactly as those values are (non-empty, https), and are cached with the descriptor for this component instance. Raised once per descriptor, which is rebuilt when Provider, ClientAuthenticationMethod, Tenant or Authority changes, and when a discovered document is older than 24 hours.
4.2.0+- C#
- VB.NET
public class OAuthProviderResolvedEventArgs : EventArgs
Public Class OAuthProviderResolvedEventArgs
Inherits EventArgs
Properties
AuthorizationEndpoint
String: Returns or sets the authorization endpoint.
DefaultScopes
String[]: Returns or sets the scopes used when Scopes is empty.
EndSessionEndpoint
String: Returns or sets the OpenID Connect end-session endpoint.
IsDiscovered
Boolean: Returns true when the endpoints came from a discovery document rather than a preset.
Issuer
String: Returns or sets the expected ID token issuer.
JwksUri
String: Returns or sets the JSON web key set URI.
Metadata
Object: Returns the raw discovery document as a DynamicObject, or null when the endpoints came from a preset.
NameClaimType
String: Returns or sets the claim type that supplies Name on the OAuthIdentity. Pre-filled null, which means the preset's candidate list — "email" for Google; "login" for GitHub; "preferred_username" for Entra; "preferred_username", then "email", then "name" for OAuth2; "preferred_username", "nickname", "email", "name" for GitLab. A non-empty value replaces that list with the one claim type named. Set it for a custom provider whose display name lives under another claim.
Provider
OAuthProvider: Returns the provider whose endpoints were resolved.
RevocationEndpoint
String: Returns or sets the RFC 7009 revocation endpoint.
SubjectClaim
String: Returns or sets the name of the claim that identifies the user: the provider's stable subject. Pre-filled from the preset — "sub" for Google, GitLab and OAuth2, "id" for GitHub, "oid" for Entra. Set it for a custom provider whose user document carries the identifier under another name, such as "id" or "user_id". Read once per attempt when the claims are assembled; a value the provider did not send fails the attempt with UserInfoRequestFailed. Never null or empty after the event: an empty value fails the attempt with Configuration.
TokenEndpoint
String: Returns or sets the token endpoint.
UserInfoEndpoint
String: Returns or sets the userinfo endpoint.
Used By
| Name | Description |
|---|---|
| OAuthProviderResolvedEventHandler | Represents the method that handles the ProviderResolved event. 4.2.0+ |