Class ServiceConnectorFactory
A factory to create a ServiceConnector instance for the Unity services gateway or for a fully qualified domain name.
Inherited Members
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. |