Table of Contents

Class JwtReaderFactory

Namespace
Tenduke.Core.Jwt
Assembly
Tenduke.Core.dll

Create IJwtReader instances for the specified issuer and audience, that will validate using the supplied JSON Web Keyset URI.

public static class JwtReaderFactory
Inheritance
JwtReaderFactory
Inherited Members

Methods

CreateReader(IHttpClientFactory, string?, TimeSpan?, Uri, IJwksStore, string?, IIssuerProvider)

Creates a new IJwtReader.

public static IJwtReader CreateReader(IHttpClientFactory httpClientFactory, string? httpClientName, TimeSpan? httpTimeout, Uri jsonWebKeysetUri, IJwksStore jwksStore, string? audience, IIssuerProvider issuerProvider)

Parameters

httpClientFactory IHttpClientFactory

Factory to create an HttpClient instance to request the JSON Web Keyset.

httpClientName string

The name of the HttpClient to use to request the JSON Web Keyset.

httpTimeout TimeSpan?

Timeout setting for HTTP request.

jsonWebKeysetUri Uri

URI for JSON Web Keyset.

jwksStore IJwksStore

Store for JSON Web Keys

audience string

The expected audience for the JSON Web Token(s).

issuerProvider IIssuerProvider

Provides the list of valid issuers for the JSON Web Token(s).

Returns

IJwtReader

IJwtReader configure to parse and validate JSON Web Tokens from the specified source.