Skip to main content
Version: 4.2

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+
public class OAuthSignInEventArgs : CancelEventArgs

Properties​

Instance member AuthorizationEndpoint​

String: Returns the resolved authorization endpoint.

Instance member AuthorizationUri​

Uri: Returns the authorization URI composed from the current values of the other members. Recomposed on every read.

Instance member DomainHint​

String: Returns or sets the domain hint for this attempt.

Instance member FlowMode​

OAuthFlowMode: Returns or sets the flow mode for this attempt.

Instance member 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.

Instance member 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.

Instance member 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.

Instance member Prompt​

OAuthPrompt: Returns or sets the prompt behaviour for this attempt.

Instance member Provider​

OAuthProvider: Returns the provider this attempt uses.

Instance member RedirectUri​

String: Returns or sets the redirect URI sent with this attempt.

Instance member Scopes​

IList<String>: Returns the mutable scope list for this attempt.

Instance member Source​

OAuthCallbackSource: Returns the planned delivery path for this attempt.

Instance member 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​

NameDescription
OAuthSignInEventHandlerRepresents the method that handles the SigningIn event.
4.2.0+