Function matrix_sdk::oidc::requests::jose::fetch_jwks

source ·
pub async fn fetch_jwks(
    http_service: &BoxCloneSyncService<Request<Bytes>, Response<Bytes>, Box<dyn Error + Sync + Send>>,
    jwks_uri: &Url,
) -> Result<JsonWebKeySet<JsonWebKeyPublicParameters>, JwksError>
Available on crate feature experimental-oidc only.
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.