View Source IDToken.Callback behaviour (id_token v0.2.1)
Link to this section Summary
Callbacks
Callback function for fetching public key certificates.
Callback function to get verification key from certificates which is fetched
with fetch_certificates/0
Link to this section Callbacks
@callback fetch_certificates() :: {:ok, IDToken.Certificate.t()}
Callback function for fetching public key certificates.
Must return a {:ok, %IDToken.Certificate{}}
tuple and this will be cached
for later use.
@callback verification_key(certificate :: IDToken.Certificate.t(), headers :: map()) :: String.t()
Callback function to get verification key from certificates which is fetched
with fetch_certificates/0
The JWT headers are given as the second argument headers
.