Class JwtReaderFactory
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
httpClientFactoryIHttpClientFactoryFactory to create an HttpClient instance to request the JSON Web Keyset.
httpClientNamestringThe name of the HttpClient to use to request the JSON Web Keyset.
httpTimeoutTimeSpan?Timeout setting for HTTP request.
jsonWebKeysetUriUriURI for JSON Web Keyset.
jwksStoreIJwksStoreStore for JSON Web Keys
audiencestringThe expected audience for the JSON Web Token(s).
issuerProviderIIssuerProviderProvides 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.