class

KemalIdentity::JWT::StaticKeySource

Inherits KemalIdentity::JWT::KeySource < Reference < Object

A KeySource over a keyring that never changes.

What a validator configured with a fixed keyring gets, so the validator has exactly one kind of thing to ask and JWKS is not a special case in the hot path.

Constructors

new(keyring : Keyring)
Source

Instance methods

keyring

The keys to verify with, fetching or refetching as its own policy dictates.

Source
refresh_for(kid : String | Nil) : Keyring

Nothing to refresh. An unknown kid against a fixed ring is a token for somebody else, and it stays refused.

Source