Class PkceConfigurationProvider
Handles the access to a PkceConfiguration.
Inherited Members
Namespace: Unity.Cloud.Identity
Syntax
public class PkceConfigurationProvider : IPkceConfigurationProvider
Constructors
PkceConfigurationProvider(IHttpClient, IAccessTokenProvider, IServiceHostResolver, IAppIdProvider, IAppNameProvider)
Builds a PkceConfigurationProvider handles the access to a PkceConfiguration.
Declaration
public PkceConfigurationProvider(IHttpClient httpClient, IAccessTokenProvider accessTokenProvider, IServiceHostResolver serviceHostResolver, IAppIdProvider appIdProvider, IAppNameProvider appNameProvider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpClient | httpClient | An IHttpClient to make http requests. |
| IAccessTokenProvider | accessTokenProvider | An IAccessTokenProvider to inject the authenticated access token in http requests. |
| IServiceHostResolver | serviceHostResolver | The service host resolver for the service Url. |
| IAppIdProvider | appIdProvider | An IAppIdProvider to inject the app identifier in cloud endpoint requests. |
| IAppNameProvider | appNameProvider | An optional IAppNameProvider to build the unique uri scheme used to bind the app to the browser response in a login operation. |
PkceConfigurationProvider(IServiceHostResolver, IAppNameProvider)
Builds a PkceConfigurationProvider handles the access to a PkceConfiguration.
Declaration
public PkceConfigurationProvider(IServiceHostResolver serviceHostResolver, IAppNameProvider appNameProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceHostResolver | serviceHostResolver | The service host resolver for the service Url. |
| IAppNameProvider | appNameProvider | An optional IAppNameProvider to build the unique uri scheme used to bind the app to the browser response in a login operation. |
Methods
GetPkceConfigurationAsync()
Creates a task that results in a PkceConfiguration when internal update is completed.
Declaration
public async Task<PkceConfiguration> GetPkceConfigurationAsync()
Returns
| Type | Description |
|---|---|
| Task<PkceConfiguration> | A task that results in a PkceConfiguration when internal update is completed. |