Table of Contents

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

httpClient HttpClient

The HTTP client the request object is fetched with.

logger ILogger<JwtRequestUriHttpClient>

Receives why a fetch was refused.

options IOptions<IdentityServerOptions>

The server options; under StrictJarValidation the response must be typed application/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

string

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

url string
cancellationToken CancellationToken

Returns

Task<string>