backend::config::auth::jwks

Function fetch_keys

source
pub async fn fetch_keys(url: &str) -> JwkSet
Expand description

Fetch jwks from the provided url and tries to parse them to JwkSet.

ยงPanics

  • If the request to the auth server fails.
  • If the keys cannot be deserialized to JwkSetHelper.