Class JwtRequestUriHttpClient
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.AspNetCore.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public sealed class JwtRequestUriHttpClient : IJwtRequestUriHttpClient
- Inheritance
-
JwtRequestUriHttpClient
- Implements
- Inherited Members
Constructors
JwtRequestUriHttpClient(HttpClient, ILogger<JwtRequestUriHttpClient>, IOptions<IdentityServerOptions>?)
Creates the client over the named HttpClient (HttpClientName).
public JwtRequestUriHttpClient(HttpClient httpClient, ILogger<JwtRequestUriHttpClient> logger, IOptions<IdentityServerOptions>? options = null)
Parameters
httpClientHttpClientThe HTTP client the request object is fetched with.
loggerILogger<JwtRequestUriHttpClient>Receives why a fetch was refused.
optionsIOptions<IdentityServerOptions>The server options; under
StrictJarValidationthe response must be typedapplication/oauth-authz-req+jwt. Null takes the defaults.
Fields
HttpClientName
The named client, so a host can configure the handler without replacing this service.
public const string HttpClientName = "Fdyay.IdentityServer.JwtRequestUri"
Field Value
Methods
GetAsync(string, CancellationToken)
Fetches the request object, or null when it cannot be retrieved or is not acceptable.
public Task<string?> GetAsync(string url, CancellationToken cancellationToken = default)
Parameters
urlstringcancellationTokenCancellationToken