Interface IIdentityServerHttpClient
Abstraction for a typed
Namespace: Geko.HttpClientService.Infrastructure
Assembly: Geko.HttpClientService.dll
Syntax
public interface IIdentityServerHttpClient
Properties
| Improve this Doc View SourceHttpClientOptionsType
The type of the IIdentityServerOptions implementation
Declaration
Type HttpClientOptionsType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
| Improve this Doc View SourceGetCacheKey(IIdentityServerOptions)
Creates a unique key to be used as the cache key of the Identity Server access token, by combining infomration from the access token options object.
Declaration
string GetCacheKey(IIdentityServerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| IIdentityServerOptions | options | The token service options |
Returns
| Type | Description |
|---|---|
| System.String | Returns a string representing a unique identifier to be used as the caching key. |
GetTokenResponseAsync(IIdentityServerOptions)
Retrieves a IdentityModel.Client.TokenResponse from the configured by the options.
Declaration
Task<TokenResponse> GetTokenResponseAsync(IIdentityServerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| IIdentityServerOptions | options | The configuration options for the IdentityServer4. |
Returns
| Type | Description |
|---|---|
| Task<IdentityModel.Client.TokenResponse> | A IdentityModel.Client.TokenResponse object. |