IOAuthLauncher
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Dispatch seam for hosts that open the provider outside the browser, such as Wisej.NET Hybrid's system browser. Register an implementation with Services; OAuthClient resolves it at sign-in and prefers it over both OAuthFlowMode values.
4.2.0+- C#
- VB.NET
public interface IOAuthLauncher
Public Interface IOAuthLauncher
This interface ships in version one even though no implementation does, because adding a dispatch seam to sign-in afterwards would be a breaking change.
Methods
CanHandle()
Returns whether this launcher can handle the current session's host.
Returns: Boolean.
LaunchAsync(authorizationUri, callbackUri, cancellationToken)
Opens the authorization URI and returns the callback parameters.
| Parameter | Type | Description |
|---|---|---|
| authorizationUri | Uri | The provider's authorization URI. |
| callbackUri | Uri | The URI the provider will return to. |
| cancellationToken | CancellationToken | Cancels the launch. |
Returns: Task<NameValueCollection>. The callback's query and fragment parameters, including code, state and error; or null when the user canceled.