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.