pub enum ClientMetadataVerificationError {
MissingRedirectUris,
RedirectUriWithFragment(Url),
IncoherentResponseType(ResponseType),
JwksUriAndJwksMutuallyExclusive,
UrlNonHttpsScheme(&'static str, Url),
MissingJwksForTokenMethod,
UnauthorizedSigningAlgNone(&'static str),
MissingAuthSigningAlg(&'static str),
IdTokenSigningAlgNone,
MissingEncryptionAlg(&'static str),
}
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
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