Class CompositeAuthenticatorSettingsBuilder
Creates a CompositeAuthenticatorSettingsBuilder that builds a CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Inherited Members
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public class CompositeAuthenticatorSettingsBuilder
Constructors
CompositeAuthenticatorSettingsBuilder(IHttpClient, IAuthenticationPlatformSupport, IServiceHostResolver)
Creates a CompositeAuthenticatorSettingsBuilder that builds a CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder(IHttpClient httpClient, IAuthenticationPlatformSupport authenticationPlatformSupport, IServiceHostResolver serviceHostResolver)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | An Unity.Cloud.Common.IHttpClient instance. |
IAuthenticationPlatformSupport | authenticationPlatformSupport | An IAuthenticationPlatformSupport instance. |
IServiceHostResolver | serviceHostResolver | An Unity.Cloud.Common.IServiceHostResolver instance. |
CompositeAuthenticatorSettingsBuilder(IHttpClient, IAuthenticationPlatformSupport, IServiceHostResolver, IAppIdProvider)
Creates a CompositeAuthenticatorSettingsBuilder that builds a CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder(IHttpClient httpClient, IAuthenticationPlatformSupport authenticationPlatformSupport, IServiceHostResolver serviceHostResolver, IAppIdProvider appIdProvider)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | An Unity.Cloud.Common.IHttpClient instance. |
IAuthenticationPlatformSupport | authenticationPlatformSupport | An IAuthenticationPlatformSupport instance. |
IServiceHostResolver | serviceHostResolver | An Unity.Cloud.Common.IServiceHostResolver instance. |
IAppIdProvider | appIdProvider | An Unity.Cloud.Common.IAppIdProvider instance. |
Methods
AddAuthenticator(IAuthenticator)
Adds any IAuthenticator to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddAuthenticator(IAuthenticator authenticator)
Parameters
Type | Name | Description |
---|---|---|
IAuthenticator | authenticator | An IAuthenticator instance. |
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
AddDefaultBrowserAuthenticatedAccessTokenProvider(IAppNamespaceProvider, Dictionary<string, string>)
Adds a default BrowserAuthenticatedAccessTokenProvider to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultBrowserAuthenticatedAccessTokenProvider(IAppNamespaceProvider appNamespaceProvider, Dictionary<string, string> localStorageKeyNames = null)
Parameters
Type | Name | Description |
---|---|---|
IAppNamespaceProvider | appNamespaceProvider | An Unity.Cloud.Common.IAppNamespaceProvider instance. |
Dictionary<string, string> | localStorageKeyNames | An optional Dictionary to define, per hosted domain, what key name to look for an access token in local storage of the browser. |
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
AddDefaultPkceAuthenticator(IAppNamespaceProvider)
Adds a default PkceAuthenticator to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultPkceAuthenticator(IAppNamespaceProvider appNamespaceProvider)
Parameters
Type | Name | Description |
---|---|---|
IAppNamespaceProvider | appNamespaceProvider | An Unity.Cloud.Common.IAppNamespaceProvider instance. |
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
Build()
Builds the CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Declaration
public CompositeAuthenticatorSettings Build()
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettings |