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.