Function backend::config::auth::jwks::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.