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, 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 | |
| IAuthenticationPlatformSupport | authenticationPlatformSupport | |
| IServiceHostResolver | serviceHostResolver |
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(IAppNameProvider, Dictionary<String, String>)
Adds a default BrowserAuthenticatedAccessTokenProvider to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultBrowserAuthenticatedAccessTokenProvider(IAppNameProvider appNameProvider, Dictionary<string, string> localStorageKeyNames = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IAppNameProvider | appNameProvider | |
| 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
[Obsolete("Replaced by similar method requiring only the IAppNameProvider.")]
public CompositeAuthenticatorSettingsBuilder AddDefaultPkceAuthenticator(IAppIdProvider appIdProvider, IAppNameProvider appNameProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IAppIdProvider | appIdProvider | |
| IAppNameProvider | appNameProvider |
Returns
| Type | Description |
|---|---|
| CompositeAuthenticatorSettingsBuilder | The modified CompositeAuthenticatorSettingsBuilder. |
AddDefaultPkceAuthenticator(IAppNameProvider)
Adds a default PkceAuthenticator to the list of IAuthenticator.
Declaration
public CompositeAuthenticatorSettingsBuilder AddDefaultPkceAuthenticator(IAppNameProvider appNameProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |