docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ServiceConnectorFactory

    A factory to create a ServiceConnector instance for the Unity services gateway or for a fully qualified domain name.

    Inheritance
    object
    ServiceConnectorFactory
    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 static class ServiceConnectorFactory

    Methods

    Create(IAuthenticationPlatformSupport, IHttpClient, IAppIdProvider, IAppNamespaceProvider)

    Creates the ServiceConnector for the Unity services gateway or for a fully qualified domain name. Default to the Unity services gateway. Any system-level overrides for a fully qualified domain name set via environment variables will take priority.

    Declaration
    public static ServiceConnector Create(IAuthenticationPlatformSupport platformSupport, IHttpClient httpClient, IAppIdProvider appIdProvider, IAppNamespaceProvider appNamespaceProvider)
    Parameters
    Type Name Description
    IAuthenticationPlatformSupport platformSupport

    An IAuthenticationPlatformSupport instance.

    IHttpClient httpClient

    An IHttpClient instance.

    IAppIdProvider appIdProvider

    An IAppIdProvider instance.

    IAppNamespaceProvider appNamespaceProvider

    An IAppNamespaceProvider instance.

    Returns
    Type Description
    ServiceConnector

    The ServiceConnector instance.

    CreateForFullyQualifiedDomainName(IAuthenticationPlatformSupport, IHttpClient, IAppIdProvider, IAppNamespaceProvider, string, string, string, string)

    Creates the ServiceConnector for a fully qualified domain name.

    Declaration
    public static ServiceConnector CreateForFullyQualifiedDomainName(IAuthenticationPlatformSupport platformSupport, IHttpClient httpClient, IAppIdProvider appIdProvider, IAppNamespaceProvider appNamespaceProvider, string fullyQualifiedDomainName, string openIdConfigurationUrl, string pathPrefix = "/", string clientId = null)
    Parameters
    Type Name Description
    IAuthenticationPlatformSupport platformSupport

    An IAuthenticationPlatformSupport instance.

    IHttpClient httpClient

    An IHttpClient instance.

    IAppIdProvider appIdProvider

    An IAppIdProvider instance.

    IAppNamespaceProvider appNamespaceProvider

    An IAppNamespaceProvider instance.

    string fullyQualifiedDomainName

    the fully qualified domain name.

    string openIdConfigurationUrl

    the openId configuration URL.

    string pathPrefix

    the optional path prefix.

    string clientId

    the optional client id. By convention, the default value is "sdk".

    Returns
    Type Description
    ServiceConnector

    The ServiceConnector instance.

    CreateForFullyQualifiedDomainName(IAuthenticationPlatformSupport, IHttpClient, IAppIdProvider, IAppNamespaceProvider, string, string, PkceConfiguration, string)

    Creates the ServiceConnector for a fully qualified domain name.

    Declaration
    public static ServiceConnector CreateForFullyQualifiedDomainName(IAuthenticationPlatformSupport platformSupport, IHttpClient httpClient, IAppIdProvider appIdProvider, IAppNamespaceProvider appNamespaceProvider, string fullyQualifiedDomainName, string openIdConfigurationUrl, PkceConfiguration basePkceConfigurationOverride, string pathPrefix = "/")
    Parameters
    Type Name Description
    IAuthenticationPlatformSupport platformSupport

    An IAuthenticationPlatformSupport instance.

    IHttpClient httpClient

    An IHttpClient instance.

    IAppIdProvider appIdProvider

    An IAppIdProvider instance.

    IAppNamespaceProvider appNamespaceProvider

    An IAppNamespaceProvider instance.

    string fullyQualifiedDomainName

    the fully qualified domain name.

    string openIdConfigurationUrl

    the openId configuration URL.

    PkceConfiguration basePkceConfigurationOverride

    The base PkceConfiguration override.

    string pathPrefix

    the optional path prefix.

    Returns
    Type Description
    ServiceConnector

    The ServiceConnector instance.

    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)