Enum oxide_auth::code_grant::resource::Error [−][src]
pub enum Error {
AccessDenied {
failure: AccessFailure,
authenticate: Authenticate,
},
NoAuthentication {
authenticate: Authenticate,
},
InvalidRequest {
authenticate: Authenticate,
},
PrimitiveError,
}Expand description
An error signalling the resource access was not permitted.
Variants
The client tried to access a resource but was not able to.
Fields of AccessDenied
failure: AccessFailureA specific cause for denying access.
authenticate: AuthenticateInformation for the Authenticate header in the error response.
The client did not provide any bearer authentication.
Fields of NoAuthentication
authenticate: AuthenticateInformation for the Authenticate header in the error response.
The request itself was malformed.
Fields of InvalidRequest
authenticate: AuthenticateInformation for the Authenticate header in the error response.
Some part of the endpoint failed, defer to endpoint for handling.
Implementations
Convert the guard error into the content used in an WWW-Authenticate header.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more