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> 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.