Skip to main content
Version: 4.2

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+
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​

Instance member CanHandle()​

Returns whether this launcher can handle the current session's host.

Returns: Boolean.

Instance member LaunchAsync(authorizationUri, callbackUri, cancellationToken)​

Opens the authorization URI and returns the callback parameters.

ParameterTypeDescription
authorizationUriUriThe provider's authorization URI.
callbackUriUriThe URI the provider will return to.
cancellationTokenCancellationTokenCancels the launch.

Returns: Task<NameValueCollection>. The callback's query and fragment parameters, including code, state and error; or null when the user canceled.