docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PkceAuthenticatorSettingsBuilder

    Builds a PkceAuthenticatorSettings to inject into the PkceAuthenticator.

    Inheritance
    object
    PkceAuthenticatorSettingsBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Identity
    Assembly: Unity.Cloud.Identity.dll
    Syntax
    public class PkceAuthenticatorSettingsBuilder

    Constructors

    PkceAuthenticatorSettingsBuilder(IAuthenticationPlatformSupport, IServiceHostResolver)

    Creates a PkceAuthenticatorSettingsBuilder that builds a PkceAuthenticatorSettings to inject into the PkceAuthenticator.

    Declaration
    public PkceAuthenticatorSettingsBuilder(IAuthenticationPlatformSupport authenticationPlatformSupport, IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IAuthenticationPlatformSupport authenticationPlatformSupport

    An IAuthenticationPlatformSupport instance.

    IServiceHostResolver serviceHostResolver

    An Unity.Cloud.Common.IServiceHostResolver instance.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    Methods

    AddAccessTokenExchanger(IAccessTokenExchanger<string, UnityServicesToken>)

    Adds a Unity.Cloud.Common.IServiceHostResolver to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddAccessTokenExchanger(IAccessTokenExchanger<string, UnityServicesToken> accessTokenExchanger)
    Parameters
    Type Name Description
    IAccessTokenExchanger<string, UnityServicesToken> accessTokenExchanger

    The IAccessTokenExchanger<T1, T2> to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddAppIdProvider(IAppIdProvider)

    Adds a default implementation of Unity.Cloud.Common.IAppIdProvider to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddAppIdProvider(IAppIdProvider appIdProvider)
    Parameters
    Type Name Description
    IAppIdProvider appIdProvider

    The Unity.Cloud.Common.IAppIdProvider to provide with the app registered Id.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddAppNamespaceProvider(IAppNamespaceProvider)

    Adds a default implementation of Unity.Cloud.Common.IAppNamespaceProvider to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddAppNamespaceProvider(IAppNamespaceProvider appNamespaceProvider)
    Parameters
    Type Name Description
    IAppNamespaceProvider appNamespaceProvider

    The Unity.Cloud.Common.IAppNamespaceProvider to provide with the app namespace.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddConfigurationProvider(IPkceConfigurationProvider)

    Adds a IPkceConfigurationProvider to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddConfigurationProvider(IPkceConfigurationProvider pkceConfigurationProvider)
    Parameters
    Type Name Description
    IPkceConfigurationProvider pkceConfigurationProvider

    The IPkceConfigurationProvider to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddDefaultAccessTokenExchanger(IHttpClient)

    Adds a Unity.Cloud.Common.IServiceHostResolver to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddDefaultAccessTokenExchanger(IHttpClient httpClient)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The Unity.Cloud.Common.IHttpClient with which to build the default IAccessTokenExchanger<T1, T2>.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddDefaultConfigurationProviderAndRequestHandler(IHttpClient, IAppNamespaceProvider)

    Adds a default implementation of IPkceConfigurationProvider to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddDefaultConfigurationProviderAndRequestHandler(IHttpClient httpClient, IAppNamespaceProvider appNamespaceProvider)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The Unity.Cloud.Common.IHttpClient with which to build the default IPkceRequestHandler.

    IAppNamespaceProvider appNamespaceProvider

    The Unity.Cloud.Common.IAppNamespaceProvider to fetch the namespace required to identify the app on the device.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddHttpClient(IHttpClient)

    Adds a Unity.Cloud.Common.IHttpClient to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddHttpClient(IHttpClient httpClient)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The Unity.Cloud.Common.IHttpClient to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddRequestHandler(IPkceRequestHandler)

    Adds a IPkceRequestHandler to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddRequestHandler(IPkceRequestHandler pkceRequestHandler)
    Parameters
    Type Name Description
    IPkceRequestHandler pkceRequestHandler

    The IPkceRequestHandler to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    Build()

    Builds the PkceAuthenticatorSettings to inject into the PkceAuthenticator.

    Declaration
    public PkceAuthenticatorSettings Build()
    Returns
    Type Description
    PkceAuthenticatorSettings

    The PkceAuthenticatorSettings.

    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)