OAuthFlowMode
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Determines how OAuthClient sends the user to the identity provider.
4.2.0+- C#
- VB.NET
public enum OAuthFlowMode
Public Enum OAuthFlowMode
Fields
| Name | Description | Value |
|---|---|---|
| Popup | The component's client class opens a popup on the provider. The provider returns to the relay page embedded in this assembly, which never loads the Wisej client and relays the result to the opener over a same-origin broadcast channel, with the direct opener message as a second path. The application's own tab never leaves the origin, so its session keeps receiving keep-alives and cannot be evicted mid-login. When the popup is blocked the attempt is always restarted as a full-page redirect against the same relay URI, so only one URI per flow mode has to be registered with the provider. An application hosted cross-site in an iframe cannot take that restart and is not supported in this mode. | |
| Redirect | The default. The current tab navigates to the provider and returns to RedirectUri. The Wisej client restores the session from browser storage when it still exists, and the flow completes in ApplicationRefresh. When the session was evicted while the user was at the provider, a new session starts and the flow completes in ApplicationStart instead. Both paths end in Authenticated. The user interface is re-rendered on return. |
Used By
| Name | Description |
|---|---|
| OAuthSignInEventArgs.FlowMode | Returns or sets the flow mode for this attempt. |
| OAuthAuthorizationRequest.FlowMode | Returns the flow mode of this attempt. |
| OAuthClient.FlowMode | Returns or sets whether browser sign-in uses a redirect or a popup. |