Class IdentityServerService
The implementation of an access token service for client credentials based on IdentityServer4.
Inheritance
System.Object
IdentityServerService
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Geko.HttpClientService.Infrastructure
Assembly: Geko.HttpClientService.dll
Syntax
public class IdentityServerService : IIdentityServerService
Constructors
| Improve this Doc View SourceIdentityServerService(IIdentityServerHttpClientSelector, ITokenResponseCacheManager)
Constructor of the IdentityServerService.
Declaration
public IdentityServerService(IIdentityServerHttpClientSelector identityServerHttpClientSelector, ITokenResponseCacheManager cache)
Parameters
Type | Name | Description |
---|---|---|
IIdentityServerHttpClientSelector | identityServerHttpClientSelector | An Identity Server HTTP client selected that will fetch the correct HTTP client. |
ITokenResponseCacheManager | cache | A cache engine imlementation, to cache the token response. |
Methods
| Improve this Doc View SourceGetTokenResponseAsync(IIdentityServerOptions)
Retrieves either a new access token using client credentials or the last valid from the caching engine.
Declaration
public async Task<TokenResponse> GetTokenResponseAsync(IIdentityServerOptions options)
Parameters
Type | Name | Description |
---|---|---|
IIdentityServerOptions | options | The token service options. |
Returns
Type | Description |
---|---|
Task<IdentityModel.Client.TokenResponse> | A IdentityModel.Client.TokenResponse instance. |