Class CompositeAuthenticatorSettingsBuilder
Creates a CompositeAuthenticatorSettingsBuilder that builds a CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Inherited Members
Namespace: Unity.Cloud.Identity
Syntax
public class CompositeAuthenticatorSettingsBuilder
Constructors
CompositeAuthenticatorSettingsBuilder(IHttpClient, IAuthenticationPlatformSupport)
Creates a CompositeAuthenticatorSettingsBuilder that builds a CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder(IHttpClient httpClient, IAuthenticationPlatformSupport authenticationPlatformSupport)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | |
IAuthenticationPlatformSupport | authenticationPlatformSupport |
Methods
AddAuthenticator(IAuthenticator)
Adds any IAuthenticator to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddAuthenticator(IAuthenticator authenticator)
Parameters
Type | Name | Description |
---|---|---|
IAuthenticator | authenticator |
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
AddDefaultBrowserAuthenticatedAccessTokenProvider(Dictionary<String, String>)
Adds a default BrowserAuthenticatedAccessTokenProvider to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultBrowserAuthenticatedAccessTokenProvider(Dictionary<string, string> localStorageKeyNames = null)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<String, String> | localStorageKeyNames |
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
AddDefaultPersonalAccessTokenProvider()
Adds a default PersonalAccessTokenProvider to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultPersonalAccessTokenProvider()
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
AddDefaultPkceAuthenticator(IAppIdProvider, IAppNameProvider)
Adds a default PkceAuthenticator to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultPkceAuthenticator(IAppIdProvider appIdProvider, IAppNameProvider appNameProvider)
Parameters
Type | Name | Description |
---|---|---|
IAppIdProvider | appIdProvider | |
IAppNameProvider | appNameProvider |
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
Build()
Builds the CompositeAuthenticatorSettings to inject into the CompositeAuthenticator.
Declaration
public CompositeAuthenticatorSettings Build()
Returns
Type | Description |
---|---|
CompositeAuthenticatorSettings |