OAuthSignInEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Provides data for the SigningIn event: adjust the authorization request for this attempt, or take navigation over. Follows the Uploading and Closing cancelable precedent, with the Handled member following SessionTimeout.
4.2.0+- C#
- VB.NET
public class OAuthSignInEventArgs : CancelEventArgs
Public Class OAuthSignInEventArgs
Inherits CancelEventArgs
Properties
AuthorizationEndpoint
String: Returns the resolved authorization endpoint.
AuthorizationUri
Uri: Returns the authorization URI composed from the current values of the other members. Recomposed on every read.
DomainHint
String: Returns or sets the domain hint for this attempt.
FlowMode
OAuthFlowMode: Returns or sets the flow mode for this attempt.
Handled
Boolean: Returns or sets whether the application navigates the user itself and will call CompleteSignIn. The attempt stays pending until it is completed, canceled, or times out.
LoginHint
String: Returns or sets the login hint for this attempt — the user's email or account name. This is the only place a hint is set: there is no component property, because a hint is right for one user and a designer value would be sent for every user of the form. Mapped per provider: GitHub "login", Entra dropped under SelectAccount, GitLab not sent.
Parameters
NameValueCollection: Returns the mutable extra authorization parameters for this attempt, pre-filled from AuthorizationParameters. Values here override computed parameters of the same name, except the seven protocol parameters state, nonce, code_challenge, code_challenge_method, client_id, redirect_uri and response_type, which are ignored with a warning.
Prompt
OAuthPrompt: Returns or sets the prompt behaviour for this attempt.
Provider
OAuthProvider: Returns the provider this attempt uses.
RedirectUri
String: Returns or sets the redirect URI sent with this attempt.
Scopes
IList<String>: Returns the mutable scope list for this attempt.
Source
OAuthCallbackSource: Returns the planned delivery path for this attempt.
State
String: Returns the state value of this attempt: a protocol version character, a flow mode character, and 43 base64url characters from a cryptographic source. Single use.
Composed on every read, because the second character encodes FlowMode and that member is settable here. Setting FlowMode changes the second character and nothing else; the 43 random characters are fixed for the life of the attempt. The value read after this event returns is the one stored and sent to the provider.
Used By
| Name | Description |
|---|---|
| OAuthSignInEventHandler | Represents the method that handles the SigningIn event. 4.2.0+ |