Function mas_oidc_client::requests::jose::fetch_jwks

source ·
pub async fn fetch_jwks(
    http_service: &HttpService,
    jwks_uri: &Url,
) -> Result<PublicJsonWebKeySet, JwksError>
Expand description

Fetch a JWKS at the given URL.

§Arguments

  • http_service - The service to use for making HTTP requests.

  • jwks_uri - The URL where the JWKS can be retrieved.

§Errors

Returns an error if the request fails or if the data is invalid.