Joken JWKS v1.1.0 JokenJwks.SignerMatchStrategy behaviour View Source
A strategy behaviour for using with JokenJwks
.
JokenJwks will call this for every token with a kid. It is the strategy's responsibility to handle caching and matching of the kid with its signers cache.
See JokenJwks.DefaultStrategyTemplate
for an implementation.
Link to this section Summary
Link to this section Callbacks
Link to this callback
match_signer_for_kid(kid, hook_options)
View Source
match_signer_for_kid(kid, hook_options)
View Source
match_signer_for_kid(kid :: binary(), hook_options :: any()) ::
{:ok, Joken.Signer.t()} | {:error, reason :: atom()}
match_signer_for_kid(kid :: binary(), hook_options :: any()) :: {:ok, Joken.Signer.t()} | {:error, reason :: atom()}