Class PkceConfigurationProvider
This IPkceConfigurationProvider implementation handles the access to a PkceConfiguration.
Inherited Members
Namespace: Unity.Cloud.Identity
Syntax
public class PkceConfigurationProvider : IPkceConfigurationProvider
Constructors
PkceConfigurationProvider(IHttpClient, IAccessTokenProvider, IAppIdProvider, IAppNameProvider)
Builds a PkceConfigurationProvider handles the access to a PkceConfiguration.
Declaration
public PkceConfigurationProvider(IHttpClient httpClient, IAccessTokenProvider accessTokenProvider, 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. |
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. |
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. |