Interface IJwksProvider
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
GetKeysByKeyIdAsync(string)
Returns all currently help public keys that match the provided key id
Task<IEnumerable<JsonWebKey>> GetKeysByKeyIdAsync(string kid)
Parameters
kidstringThe 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.