pub enum AuthError {
Show 58 variants
JwtUnsupportedKeyAlgorithm(KeyAlgorithm),
JwtMissingKeyAlgorithm,
JwtMissingPrivateKey,
JwtMissingDecodingKeyOrKeyResolver,
JwtMissingIssuer,
JwtNoKeyResolver,
JwtNoStaticTokenConfigured,
JwtJwkFormatNotSupportedForEncoding,
JwtFetchJwksFailed(StatusCode),
JwtStaticUnsupportedCustomClaims,
OidcDiscoveryMissingTokenEndpoint,
OidcKeyNotFound(String),
OidcMissingKidWithMultipleKeys,
OidcUnsupportedCustomClaims,
OAuth2Request(Box<dyn Error + Send + Sync>),
TokenEndpointError {
status: u16,
body: String,
},
InvalidClientCredentials,
HmacKeyTooShort,
HmacKeyMissing,
TimeError(SystemTimeError),
UrlParseError(ParseError),
HeaderNameError(InvalidHeaderName),
HeaderValueError(InvalidHeaderValue),
FileWatcherError(FileWatcherError),
GetTokenError,
TokenInvalid,
TokenMalformed,
TokenInvalidMissingSub,
TokenInvalidReplay,
JwtTokenInvalid(Error),
TokenInvalidMissingExp,
HttpError(Error),
JwksParse {
source: Error,
},
JwksNoSuitableKey,
JwksCacheMiss {
issuer: String,
},
OidcDiscoveryMissingJwksUri,
JwksCacheExpired {
issuer: String,
},
SpireUnsupportedOnWindows,
SpiffeCustomClaimsSerialize {
source: Error,
},
SpiffeError(SpiffeIdError),
SpiffeGrpcError(WorkloadApiError),
SpiffeWorkloadApiUnavailable,
SpiffeX509SourceError(X509SourceError),
SpiffeJwtSourceError(JwtSourceError),
SpiffeJwtSourceNotInitialized,
SpiffeJwtSvidMissing,
SpiffeJwtBundleMissing,
SpiffeInvalidJwtSvid(JwtSvidError),
SpiffeX509SvidMissing,
SpiffeX509SourceNotInitialized,
SpiffeX509BundleMissing(TrustDomain),
SpiffeX509EmptyCertChain,
JsonError(Error),
Base64DecodeError(DecodeError),
WouldBlockOn,
MlsNotSupported,
PublicKeyNotFound,
SubjectNotFound,
}Variants§
JwtUnsupportedKeyAlgorithm(KeyAlgorithm)
JwtMissingKeyAlgorithm
JwtMissingPrivateKey
JwtMissingDecodingKeyOrKeyResolver
JwtMissingIssuer
JwtNoKeyResolver
JwtNoStaticTokenConfigured
JwtJwkFormatNotSupportedForEncoding
JwtFetchJwksFailed(StatusCode)
JwtStaticUnsupportedCustomClaims
OidcDiscoveryMissingTokenEndpoint
OidcKeyNotFound(String)
OidcMissingKidWithMultipleKeys
OidcUnsupportedCustomClaims
OAuth2Request(Box<dyn Error + Send + Sync>)
TokenEndpointError
InvalidClientCredentials
HmacKeyTooShort
HmacKeyMissing
TimeError(SystemTimeError)
UrlParseError(ParseError)
HeaderNameError(InvalidHeaderName)
HeaderValueError(InvalidHeaderValue)
FileWatcherError(FileWatcherError)
GetTokenError
TokenInvalid
TokenMalformed
TokenInvalidMissingSub
TokenInvalidReplay
JwtTokenInvalid(Error)
TokenInvalidMissingExp
HttpError(Error)
JwksParse
JwksNoSuitableKey
JwksCacheMiss
OidcDiscoveryMissingJwksUri
JwksCacheExpired
SpireUnsupportedOnWindows
SpiffeCustomClaimsSerialize
SpiffeError(SpiffeIdError)
SpiffeGrpcError(WorkloadApiError)
SpiffeX509SourceError(X509SourceError)
SpiffeJwtSourceError(JwtSourceError)
SpiffeJwtSourceNotInitialized
SpiffeJwtSvidMissing
SpiffeJwtBundleMissing
SpiffeInvalidJwtSvid(JwtSvidError)
SpiffeX509SvidMissing
SpiffeX509SourceNotInitialized
SpiffeX509BundleMissing(TrustDomain)
SpiffeX509EmptyCertChain
JsonError(Error)
Base64DecodeError(DecodeError)
WouldBlockOn
MlsNotSupported
PublicKeyNotFound
SubjectNotFound
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
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<DecodeError> for AuthError
impl From<DecodeError> for AuthError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FileWatcherError> for AuthError
impl From<FileWatcherError> for AuthError
Source§fn from(source: FileWatcherError) -> Self
fn from(source: FileWatcherError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderName> for AuthError
impl From<InvalidHeaderName> for AuthError
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for AuthError
impl From<InvalidHeaderValue> for AuthError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<JwtSourceError> for AuthError
impl From<JwtSourceError> for AuthError
Source§fn from(source: JwtSourceError) -> Self
fn from(source: JwtSourceError) -> Self
Converts to this type from the input type.
Source§impl From<JwtSvidError> for AuthError
impl From<JwtSvidError> for AuthError
Source§fn from(source: JwtSvidError) -> Self
fn from(source: JwtSvidError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for AuthError
impl From<ParseError> for AuthError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<SpiffeIdError> for AuthError
impl From<SpiffeIdError> for AuthError
Source§fn from(source: SpiffeIdError) -> Self
fn from(source: SpiffeIdError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for AuthError
impl From<SystemTimeError> for AuthError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<WorkloadApiError> for AuthError
impl From<WorkloadApiError> for AuthError
Source§fn from(source: WorkloadApiError) -> Self
fn from(source: WorkloadApiError) -> Self
Converts to this type from the input type.
Source§impl From<X509SourceError> for AuthError
impl From<X509SourceError> for AuthError
Source§fn from(source: X509SourceError) -> Self
fn from(source: X509SourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthError
impl !UnwindSafe for AuthError
impl Freeze for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<E> ErrorChainExt for Ewhere
E: Error,
impl<E> ErrorChainExt for Ewhere
E: Error,
Source§fn chain(&self) -> DisplayErrorChain<&E>
fn chain(&self) -> DisplayErrorChain<&E>
Provides an fmt::Display implementation for an error as a chain.
Source§fn into_chain(self) -> DisplayErrorChain<E>where
E: Sized,
fn into_chain(self) -> DisplayErrorChain<E>where
E: Sized,
Same as
chain, but consumes 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request