Class ServiceAccountAuthenticatorSettingsBuilder
Builds a ServiceAccountAuthenticatorSettings to inject into the ServiceAccountAuthenticator.
Inherited Members
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public class ServiceAccountAuthenticatorSettingsBuilder
Constructors
ServiceAccountAuthenticatorSettingsBuilder(IHttpClient, IServiceHostResolver, IAuthenticationPlatformSupport)
Constructor for the ServiceAccountAuthenticatorSettingsBuilder.
Declaration
public ServiceAccountAuthenticatorSettingsBuilder(IHttpClient httpClient, IServiceHostResolver serviceHostResolver, IAuthenticationPlatformSupport authenticationPlatformSupport)
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpClient | httpClient | The IHttpClient to add to the authenticator settings. |
| IServiceHostResolver | serviceHostResolver | The IServiceHostResolver ionstance. |
| IAuthenticationPlatformSupport | authenticationPlatformSupport | The IAuthenticationPlatformSupport ionstance. |
Methods
Build()
Builds the ServiceAccountAuthenticatorSettings to inject into the ServiceAccountAuthenticator.
Declaration
public ServiceAccountAuthenticatorSettings Build()
Returns
| Type | Description |
|---|---|
| ServiceAccountAuthenticatorSettings |
SetAppIdProvider(IAppIdProvider)
Sets an IAppIdProvider to the authenticator settings.
Declaration
public ServiceAccountAuthenticatorSettingsBuilder SetAppIdProvider(IAppIdProvider appIdProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IAppIdProvider | appIdProvider | The IAppIdProvider to provide with the app Id. |
Returns
| Type | Description |
|---|---|
| ServiceAccountAuthenticatorSettingsBuilder | The modified ServiceAccountAuthenticatorSettingsBuilder. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if any parameter is null. |
SetServiceAccountCredentialsExchanger(IAccessTokenExchanger<ServiceAccountCredentials, UnityServicesToken>)
Sets a Service Account credentials exchanger to the authenticator settings.
Declaration
public ServiceAccountAuthenticatorSettingsBuilder SetServiceAccountCredentialsExchanger(IAccessTokenExchanger<ServiceAccountCredentials, UnityServicesToken> accessTokenExchanger)
Parameters
| Type | Name | Description |
|---|---|---|
| IAccessTokenExchanger<ServiceAccountCredentials, UnityServicesToken> | accessTokenExchanger | The IAccessTokenExchanger<T1, T2> to add to the authenticator settings. |
Returns
| Type | Description |
|---|---|
| ServiceAccountAuthenticatorSettingsBuilder | The modified ServiceAccountAuthenticatorSettingsBuilder. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if any parameter is null. |
SetServiceAccountCredentialsExchanger(IPkceConfigurationProvider)
Sets the Service Account credentials exchanger to the authenticator settings.
Declaration
public ServiceAccountAuthenticatorSettingsBuilder SetServiceAccountCredentialsExchanger(IPkceConfigurationProvider pkceConfigurationProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IPkceConfigurationProvider | pkceConfigurationProvider | The IPkceConfigurationProvider to inject in the Service Account credentials exchanger. |
Returns
| Type | Description |
|---|---|
| ServiceAccountAuthenticatorSettingsBuilder | The modified ServiceAccountAuthenticatorSettingsBuilder. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if any parameter is null. |