Table of Contents

Interface IJwksProvider

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

Represents a service that holds public keys for an API and can be queried by key id

public interface IJwksProvider

Methods

GetJwksAsync()

Gets all the public keys curretly held

Task<Jwks> GetJwksAsync()

Returns

Task<Jwks>

All current held public keys

GetKeysByKeyIdAsync(string)

Returns all currently help public keys that match the provided key id

Task<IEnumerable<JsonWebKey>> GetKeysByKeyIdAsync(string kid)

Parameters

kid string

The key id needed for verification of a JWT

Returns

Task<IEnumerable<JsonWebKey>>

The single public key that matches the key id if there is a match; or if there is not a match an empty list.