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),
}
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§
source§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
source§impl From<ProviderMetadataVerificationError> for DiscoveryError
impl From<ProviderMetadataVerificationError> for DiscoveryError
source§fn from(source: ProviderMetadataVerificationError) -> Self
fn from(source: ProviderMetadataVerificationError) -> Self
Auto Trait Implementations§
impl Freeze for ProviderMetadataVerificationError
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.