pub enum ProviderMetadataVerificationError {
Show 20 variants
MissingIssuer,
IssuerNotUrl,
MissingAuthorizationEndpoint,
MissingTokenEndpoint,
MissingJwksUri,
MissingResponseTypesSupported,
MissingSubjectTypesSupported,
MissingIdTokenSigningAlgValuesSupported,
UrlNonHttpsScheme(&'static str, Url),
UrlWithQuery(&'static str, Url),
UrlWithFragment(&'static str, Url),
IssuerUrlsDontMatch,
ScopesMissingOpenid,
ResponseTypesMissingCode,
ResponseTypesMissingIdToken,
ResponseTypesMissingIdTokenToken,
GrantTypesMissingAuthorizationCode,
GrantTypesMissingImplicit,
MissingAuthSigningAlgValues(&'static str),
SigningAlgValuesWithNone(&'static str),
}
experimental-oidc
only.Expand description
All errors that can happen when verifying ProviderMetadata
Variants§
MissingIssuer
The issuer is missing.
IssuerNotUrl
The issuer is not a valid URL.
MissingAuthorizationEndpoint
The authorization endpoint is missing.
MissingTokenEndpoint
The token endpoint is missing.
MissingJwksUri
The JWK Set URI is missing.
MissingResponseTypesSupported
The supported response types are missing.
MissingSubjectTypesSupported
The supported subject types are missing.
MissingIdTokenSigningAlgValuesSupported
The supported ID token signing algorithm values are missing.
UrlNonHttpsScheme(&'static str, Url)
The URL of the given field doesn’t use a https
scheme.
UrlWithQuery(&'static str, Url)
The URL of the given field contains a query, but it’s not allowed.
UrlWithFragment(&'static str, Url)
The URL of the given field contains a fragment, but it’s not allowed.
IssuerUrlsDontMatch
The issuer URL doesn’t match the one that was discovered.
ScopesMissingOpenid
openid
is missing from the supported scopes.
ResponseTypesMissingCode
code
is missing from the supported response types.
ResponseTypesMissingIdToken
id_token
is missing from the supported response types.
ResponseTypesMissingIdTokenToken
id_token token
is missing from the supported response types.
GrantTypesMissingAuthorizationCode
authorization_code
is missing from the supported grant types.
GrantTypesMissingImplicit
implicit
is missing from the supported grant types.
MissingAuthSigningAlgValues(&'static str)
The given endpoint is missing auth signing algorithm values, but they
are required because it supports at least one of the client_secret_jwt
or private_key_jwt
authentication methods.
SigningAlgValuesWithNone(&'static str)
none
is in the given endpoint’s signing algorithm values, but is not
allowed.
Trait Implementations§
§impl Debug for ProviderMetadataVerificationError
impl Debug for ProviderMetadataVerificationError
§impl Error for ProviderMetadataVerificationError
impl Error for ProviderMetadataVerificationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
§impl From<ProviderMetadataVerificationError> for DiscoveryError
impl From<ProviderMetadataVerificationError> for DiscoveryError
§fn from(source: ProviderMetadataVerificationError) -> DiscoveryError
fn from(source: ProviderMetadataVerificationError) -> DiscoveryError
Auto Trait Implementations§
impl RefUnwindSafe for ProviderMetadataVerificationError
impl Send for ProviderMetadataVerificationError
impl Sync for ProviderMetadataVerificationError
impl Unpin for ProviderMetadataVerificationError
impl UnwindSafe for ProviderMetadataVerificationError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>