pub enum OIDCValidationError {
InvalidBearerAuth(HttpError),
CryptoError(Error),
BearerNotComplete,
Unauthorized,
FailedToParseJsonResponse(JsonPayloadError),
FailedToLoadKeystore(HttpError),
FailedToLoadDiscovery(HttpError),
ConnectivityError(SendRequestError),
InvalidAccess,
}
Expand description
When a JWT token is received and validated, it may be faulty due to different reasons
Variants§
InvalidBearerAuth(HttpError)
The Bearer token passed is not valid
CryptoError(Error)
The token validation fails due to cryptographic issues
BearerNotComplete
The Bearer token passed is not found or faulty
The validated token has been validated but is not valid for this situation.
FailedToParseJsonResponse(JsonPayloadError)
It was not possible to laod the keys used for validation of the signature
FailedToLoadKeystore(HttpError)
It was not possible to fetch the JWKS uri
FailedToLoadDiscovery(HttpError)
It was not possible to retrieve the openid-configuration document and get the jwks_uri
ConnectivityError(SendRequestError)
Failed to fetch data from given URI
InvalidAccess
Token does not have sufficient rights
Trait Implementations§
Source§impl Debug for OIDCValidationError
impl Debug for OIDCValidationError
Source§impl Display for OIDCValidationError
impl Display for OIDCValidationError
Source§impl Error for OIDCValidationError
impl Error for OIDCValidationError
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<Error> for OIDCValidationError
impl From<Error> for OIDCValidationError
Source§fn from(e: BiscuitError) -> Self
fn from(e: BiscuitError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OIDCValidationError
impl From<Error> for OIDCValidationError
Source§impl From<JsonPayloadError> for OIDCValidationError
impl From<JsonPayloadError> for OIDCValidationError
Source§fn from(e: JsonPayloadError) -> Self
fn from(e: JsonPayloadError) -> Self
Converts to this type from the input type.
Source§impl From<SendRequestError> for OIDCValidationError
impl From<SendRequestError> for OIDCValidationError
Source§fn from(e: SendRequestError) -> Self
fn from(e: SendRequestError) -> Self
Converts to this type from the input type.
Source§impl ResponseError for OIDCValidationError
impl ResponseError for OIDCValidationError
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Auto Trait Implementations§
impl !Freeze for OIDCValidationError
impl !RefUnwindSafe for OIDCValidationError
impl !Send for OIDCValidationError
impl !Sync for OIDCValidationError
impl Unpin for OIDCValidationError
impl !UnwindSafe for OIDCValidationError
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