pub async fn discover(
http_service: &BoxCloneSyncService<Request<Bytes>, Response<Bytes>, Box<dyn Error + Sync + Send>>,
issuer: &str,
) -> Result<VerifiedProviderMetadata, DiscoveryError>
Available on crate feature
experimental-oidc
only.Expand description
Fetch the provider metadata and validate it.
§Errors
Returns an error if the request fails or if the data is invalid.