docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ServiceAccountAuthenticatorSettingsBuilder

    Builds a ServiceAccountAuthenticatorSettings to inject into the ServiceAccountAuthenticator.

    Inheritance
    object
    ServiceAccountAuthenticatorSettingsBuilder
    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 ServiceAccountAuthenticatorSettingsBuilder

    Constructors

    ServiceAccountAuthenticatorSettingsBuilder(IHttpClient, IServiceHostResolver, IAuthenticationPlatformSupport)

    Constructor for the ServiceAccountAuthenticatorSettingsBuilder.

    Declaration
    public ServiceAccountAuthenticatorSettingsBuilder(IHttpClient httpClient, IServiceHostResolver serviceHostResolver, IAuthenticationPlatformSupport authenticationPlatformSupport)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The IHttpClient to add to the authenticator settings.

    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver ionstance.

    IAuthenticationPlatformSupport authenticationPlatformSupport

    The IAuthenticationPlatformSupport ionstance.

    Methods

    Build()

    Builds the ServiceAccountAuthenticatorSettings to inject into the ServiceAccountAuthenticator.

    Declaration
    public ServiceAccountAuthenticatorSettings Build()
    Returns
    Type Description
    ServiceAccountAuthenticatorSettings

    The ServiceAccountAuthenticatorSettings.

    SetAppIdProvider(IAppIdProvider)

    Sets an IAppIdProvider to the authenticator settings.

    Declaration
    public ServiceAccountAuthenticatorSettingsBuilder SetAppIdProvider(IAppIdProvider appIdProvider)
    Parameters
    Type Name Description
    IAppIdProvider appIdProvider

    The IAppIdProvider to provide with the app Id.

    Returns
    Type Description
    ServiceAccountAuthenticatorSettingsBuilder

    The modified ServiceAccountAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    SetServiceAccountCredentialsExchanger(IAccessTokenExchanger<ServiceAccountCredentials, UnityServicesToken>)

    Sets a Service Account credentials exchanger to the authenticator settings.

    Declaration
    public ServiceAccountAuthenticatorSettingsBuilder SetServiceAccountCredentialsExchanger(IAccessTokenExchanger<ServiceAccountCredentials, UnityServicesToken> accessTokenExchanger)
    Parameters
    Type Name Description
    IAccessTokenExchanger<ServiceAccountCredentials, UnityServicesToken> accessTokenExchanger

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

    Returns
    Type Description
    ServiceAccountAuthenticatorSettingsBuilder

    The modified ServiceAccountAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    SetServiceAccountCredentialsExchanger(IPkceConfigurationProvider)

    Sets the Service Account credentials exchanger to the authenticator settings.

    Declaration
    public ServiceAccountAuthenticatorSettingsBuilder SetServiceAccountCredentialsExchanger(IPkceConfigurationProvider pkceConfigurationProvider)
    Parameters
    Type Name Description
    IPkceConfigurationProvider pkceConfigurationProvider

    The IPkceConfigurationProvider to inject in the Service Account credentials exchanger.

    Returns
    Type Description
    ServiceAccountAuthenticatorSettingsBuilder

    The modified ServiceAccountAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    In This Article
    Back to top
    Copyright © 2025 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)