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