pub enum ClientMetadataVerificationError {
MissingRedirectUris,
RedirectUriWithFragment(Url),
IncoherentResponseType(ResponseType),
JwksUriAndJwksMutuallyExclusive,
UrlNonHttpsScheme(&'static str, Url),
MissingJwksForTokenMethod,
UnauthorizedSigningAlgNone(&'static str),
MissingAuthSigningAlg(&'static str),
IdTokenSigningAlgNone,
MissingEncryptionAlg(&'static str),
}
experimental-oidc
only.Expand description
All errors that can happen when verifying ClientMetadata
.
Variants§
MissingRedirectUris
The redirect URIs are missing.
RedirectUriWithFragment(Url)
The redirect URI has a fragment, which is not allowed.
IncoherentResponseType(ResponseType)
The given response type is not compatible with the grant types.
JwksUriAndJwksMutuallyExclusive
Both the jwks_uri
and jwks
fields are present but only one is
allowed.
UrlNonHttpsScheme(&'static str, Url)
The URL of the given field doesn’t use a https
scheme.
MissingJwksForTokenMethod
No JWK Set was provided but one is required for the token auth method.
The given endpoint doesn’t allow none
as a signing algorithm.
MissingAuthSigningAlg(&'static str)
The given endpoint is missing an auth signing algorithm, but it is
required because it uses one of the client_secret_jwt
or
private_key_jwt
authentication methods.
IdTokenSigningAlgNone
none
is used as the signing algorithm for ID Tokens, but is not
allowed.
MissingEncryptionAlg(&'static str)
The given encryption field has an enc
value but not alg
value.
Trait Implementations§
Source§impl Error for ClientMetadataVerificationError
impl Error for ClientMetadataVerificationError
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
Auto Trait Implementations§
impl Freeze for ClientMetadataVerificationError
impl RefUnwindSafe for ClientMetadataVerificationError
impl Send for ClientMetadataVerificationError
impl Sync for ClientMetadataVerificationError
impl Unpin for ClientMetadataVerificationError
impl UnwindSafe for ClientMetadataVerificationError
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
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more