pub enum JwksClientError {
OidcProviderMetadataRequestFailed(Error),
InvalidOidcProviderMetadataResponse(Error),
JwksRequestFailed(Error),
InvalidJwksResponse(Error),
}Expand description
Possible errors when fetching the JWKS.
Variants§
OidcProviderMetadataRequestFailed(Error)
OIDC provider metadata request failed.
Possible reasons:
- Network error.
- Wrong OIDC provider metadata URL.
- OIDC provider metadata provider is not available.
InvalidOidcProviderMetadataResponse(Error)
OIDC provider metadata request succeeded, but it does not match the expected OIDC provider
metadata schema (response_body["jwks_uri"] is missing, or is not a valid URL).
JwksRequestFailed(Error)
JWKS request failed.
Possible reasons:
- Network error.
- Wrong JWKS URL.
- JWKS provider is not available.
InvalidJwksResponse(Error)
JWKS request succeeded, but it does not match the expected JWKS schema.
Trait Implementations§
Source§impl Debug for JwksClientError
impl Debug for JwksClientError
Source§impl Display for JwksClientError
impl Display for JwksClientError
Source§impl Error for JwksClientError
impl Error for JwksClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<JwksClientError> for IdTokenVerifierError
impl From<JwksClientError> for IdTokenVerifierError
Source§fn from(source: JwksClientError) -> Self
fn from(source: JwksClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JwksClientError
impl !RefUnwindSafe for JwksClientError
impl Send for JwksClientError
impl Sync for JwksClientError
impl Unpin for JwksClientError
impl !UnwindSafe for JwksClientError
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
Mutably borrows from an owned value. Read more
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> 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.