docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WebglPkcePlatformSupport

    This class handles WebGL platform-specific features in the authentication flow.

    Inheritance
    object
    BasePkcePlatformSupport
    WebglActivatePlatformSupport
    WebglPkcePlatformSupport
    Implements
    IAuthenticationPlatformSupport
    IActivatePlatformSupport
    Inherited Members
    BasePkcePlatformSupport.UrlRedirectionInterceptor
    BasePkcePlatformSupport.HostUrl
    BasePkcePlatformSupport.ActivationUrl
    BasePkcePlatformSupport.ActivationKeyValue
    BasePkcePlatformSupport.GetAppStateOverride()
    BasePkcePlatformSupport.m_LoginUrl
    BasePkcePlatformSupport.m_UrlProcessor
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Identity.Runtime
    Assembly: Unity.Cloud.Identity.Runtime.dll
    Syntax
    public class WebglPkcePlatformSupport : WebglActivatePlatformSupport, IAuthenticationPlatformSupport, IActivatePlatformSupport

    Constructors

    WebglPkcePlatformSupport(IUrlRedirectionInterceptor, IUrlProcessor, IAppIdProvider, IAppNamespaceProvider, string, string)

    Creates a BasePkcePlatformSupport that handles app activation from an url or key value pairs.

    Declaration
    public WebglPkcePlatformSupport(IUrlRedirectionInterceptor urlRedirectionInterceptor, IUrlProcessor urlProcessor, IAppIdProvider appIdProvider, IAppNamespaceProvider appNamespaceProvider, string cacheStorePath, string activationUrl = null)
    Parameters
    Type Name Description
    IUrlRedirectionInterceptor urlRedirectionInterceptor

    An Unity.Cloud.AppLinking.IUrlRedirectionInterceptor that manages url redirection interception.

    IUrlProcessor urlProcessor

    An Unity.Cloud.AppLinking.IUrlProcessor that manages url processing after interception.

    IAppIdProvider appIdProvider

    An Unity.Cloud.Common.IAppIdProvider instance.

    IAppNamespaceProvider appNamespaceProvider

    An Unity.Cloud.Common.IAppNamespaceProvider instance.

    string cacheStorePath

    A full path to a readable/writable directory.

    string activationUrl

    An optional activation URL.

    Properties

    CodeVerifierCacheStore

    The code verifier cache store used in authenticated redirection flow.

    Declaration
    public override IKeyValueStore CodeVerifierCacheStore { get; }
    Property Value
    Type Description
    IKeyValueStore
    Overrides
    BasePkcePlatformSupport.CodeVerifierCacheStore

    SecretCacheStore

    The secret cache store used in authenticated redirection flow.

    Declaration
    public override IKeyValueStore SecretCacheStore { get; }
    Property Value
    Type Description
    IKeyValueStore
    Overrides
    BasePkcePlatformSupport.SecretCacheStore

    Methods

    ExportServiceAuthorizerToken(string, string)

    Exports the token and its token type used to authorize Service endpoints call.

    Declaration
    public override void ExportServiceAuthorizerToken(string type, string token)
    Parameters
    Type Name Description
    string type

    Authorization type for the token (Bearer or Basic).

    string token

    The token string value.

    Overrides
    BasePkcePlatformSupport.ExportServiceAuthorizerToken(string, string)

    GetCancellationUri()

    Get the cancellation Uri expected from the browser when calling OpenUrlAndWaitForRedirectAsync(string, List<string>).

    Declaration
    public override string GetCancellationUri()
    Returns
    Type Description
    string

    The cancellation Uri expected from the browser when calling OpenUrlAndWaitForRedirectAsync(string, List<string>).

    Overrides
    BasePkcePlatformSupport.GetCancellationUri()

    GetRedirectUri(string)

    Gets the redirection URI expected from the browser when calling OpenUrlAndWaitForRedirectAsync(string, List<string>).

    Declaration
    public override string GetRedirectUri(string operation = null)
    Parameters
    Type Name Description
    string operation

    Optional string to append to the path of the redirect URI

    Returns
    Type Description
    string

    The redirection URI expected from the browser when calling OpenUrlAndWaitForRedirectAsync(string, List<string>).

    Overrides
    BasePkcePlatformSupport.GetRedirectUri(string)

    GetRedirectUriAsync(string)

    Gets the redirection URI expected from the browser when calling OpenUrlAndWaitForRedirectAsync(string, List<string>).

    Declaration
    public override Task<string> GetRedirectUriAsync(string operation = null)
    Parameters
    Type Name Description
    string operation

    Optional string to append to the path of the redirect URI

    Returns
    Type Description
    Task<string>

    The redirection URI expected from the browser when calling OpenUrlAndWaitForRedirectAsync(string, List<string>).

    Overrides
    BasePkcePlatformSupport.GetRedirectUriAsync(string)

    GetRedirectionResult()

    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
    BasePkcePlatformSupport.GetRedirectionResult()

    OpenUrlAndWaitForRedirectAsync(string, List<string>)

    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
    BasePkcePlatformSupport.OpenUrlAndWaitForRedirectAsync(string, List<string>)

    ProcessActivationUrl(List<string>)

    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
    BasePkcePlatformSupport.ProcessActivationUrl(List<string>)

    Implements

    IAuthenticationPlatformSupport
    Unity.Cloud.AppLinking.IActivatePlatformSupport
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)