Class WebglPkcePlatformSupport
This class handles WebGL platform-specific features in the authentication flow.
Inheritance
WebglPkcePlatformSupport
Implements
IActivatePlatformSupport
Assembly: Unity.Cloud.Identity.Runtime.dll
public class WebglPkcePlatformSupport : WebglActivatePlatformSupport, IAuthenticationPlatformSupport, IActivatePlatformSupport
Constructors
Declaration
public WebglPkcePlatformSupport(IUrlRedirectionInterceptor urlRedirectionInterceptor, IUrlProcessor urlProcessor, IAppIdProvider appIdProvider, IAppNamespaceProvider appNamespaceProvider, string cacheStorePath, string activationUrl = null)
Parameters
Properties
Declaration
public override IKeyValueStore CodeVerifierCacheStore { get; }
Property Value
Overrides
Declaration
public override IKeyValueStore SecretCacheStore { get; }
Property Value
Overrides
Methods
Declaration
public override void ExportServiceAuthorizerToken(string type, string token)
Parameters
Overrides
Declaration
public override string GetCancellationUri()
Returns
Overrides
Declaration
public override string GetRedirectUri(string operation = null)
Parameters
| Type |
Name |
Description |
| string |
operation |
|
Returns
Overrides
Declaration
public override Task<string> GetRedirectUriAsync(string operation = null)
Parameters
| Type |
Name |
Description |
| string |
operation |
|
Returns
Overrides
On WebGL this method will return the Unity.Cloud.AppLinking.UrlRedirectResult captured at app initializing time, or null if none available.
Declaration
public override UrlRedirectResult? GetRedirectionResult()
Returns
| Type |
Description |
| UrlRedirectResult? |
The Unity.Cloud.AppLinking.UrlRedirectResult captured at app initializing time, or null if none available.
|
Overrides
Creates an awaitable Task that opens an url in a browser and completes when WebGL host page is reloaded and login is intercepted, validated and returns a Unity.Cloud.AppLinking.UrlRedirectResult.
Declaration
public override Task<UrlRedirectResult> OpenUrlAndWaitForRedirectAsync(string url, List<string> awaitedQueryArguments = null)
Parameters
| Type |
Name |
Description |
| string |
url |
The url to open. It must trigger a redirection to the Uri referenced by GetRedirectUri(string).
|
| List<string> |
awaitedQueryArguments |
The list of query arguments to validate when receiving the awaited callback url.
|
Returns
| Type |
Description |
| Task<UrlRedirectResult> |
A Task that results in a Unity.Cloud.AppLinking.UrlRedirectResult when completed.
|
Overrides
Process activation url to complete login or consume an authenticated app resource.
Declaration
public override void ProcessActivationUrl(List<string> awaitedQueryArguments = null)
Parameters
| Type |
Name |
Description |
| List<string> |
awaitedQueryArguments |
The list of query arguments to validate when processing the activation url.
|
Overrides
Implements
Unity.Cloud.AppLinking.IActivatePlatformSupport