View Source JokenJwks.HttpFetcher (Joken JWKS v1.7.0-rc.0)
Makes a GET request to an OpenID Connect certificates endpoint.
This must be a standard JWKS URI as per the specification here: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
This uses the Tesla
library to make it easy to test or change the adapter
if wanted.
Options include:
:http_adapter
(default:Tesla.Adapter.Hackney
):http_middlewares
: a list of extraTesla.Middleware
configurations
See our tests for an example of mocking the HTTP fetching.
Summary
Functions
Fetches the JWKS signers from the given url.
Functions
Fetches the JWKS signers from the given url.
This retries up to 10 times with a fixed delay of 500 ms until the server delivers an answer. We only perform a GET request that is idempotent.
We use :hackney
as it validates certificates automatically.