pub enum AuthorizeError {
Show 13 variants
ProcessTokens(JwtProcessingError),
Action(Box<ParseErrors>),
IdentifierParsing(Box<ParseErrors>),
CreateContext(Box<ContextJsonError>),
InvalidPrincipal(Box<InvalidPrincipalError>),
RequestValidation(Box<RequestValidationError>),
ValidateEntities(Box<EntitiesError>),
EntitiesToJson(Error),
BuildContext(BuildContextError),
BuildEntity(BuildEntityError),
BuildUnsignedRoleEntity(BuildUnsignedEntityError),
MultiIssuerValidation(MultiIssuerValidationError),
MultiIssuerEntity(MultiIssuerEntityError),
}Expand description
Error type for Authorization Service
Variants§
ProcessTokens(JwtProcessingError)
Error encountered while processing JWT token data
Action(Box<ParseErrors>)
Error encountered while parsing Action to EntityUid
IdentifierParsing(Box<ParseErrors>)
Error encountered while parsing an entity type name or action identifier
CreateContext(Box<ContextJsonError>)
Error encountered while validating context according to the schema
InvalidPrincipal(Box<InvalidPrincipalError>)
Error encountered while creating cedar_policy::Request for entity principal
RequestValidation(Box<RequestValidationError>)
Error encountered while validating the Cedar request
ValidateEntities(Box<EntitiesError>)
Error encountered while checking if the Entities adhere to the schema
EntitiesToJson(Error)
Error encountered while parsing all entities to json for logging
BuildContext(BuildContextError)
Error encountered while building the context for the request
BuildEntity(BuildEntityError)
Error encountered while building Cedar Entities
BuildUnsignedRoleEntity(BuildUnsignedEntityError)
Error encountered while building Role entity in an unsigned request
MultiIssuerValidation(MultiIssuerValidationError)
Error encountered while validating multi-issuer request
MultiIssuerEntity(MultiIssuerEntityError)
Error encountered while building multi-issuer entities
Trait Implementations§
Source§impl Debug for AuthorizeError
impl Debug for AuthorizeError
Source§impl Display for AuthorizeError
impl Display for AuthorizeError
Source§impl Error for AuthorizeError
impl Error for AuthorizeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Box<ContextJsonError>> for AuthorizeError
impl From<Box<ContextJsonError>> for AuthorizeError
Source§fn from(source: Box<ContextJsonError>) -> Self
fn from(source: Box<ContextJsonError>) -> Self
Source§impl From<Box<EntitiesError>> for AuthorizeError
impl From<Box<EntitiesError>> for AuthorizeError
Source§fn from(source: Box<EntitiesError>) -> Self
fn from(source: Box<EntitiesError>) -> Self
Source§impl From<Box<InvalidPrincipalError>> for AuthorizeError
impl From<Box<InvalidPrincipalError>> for AuthorizeError
Source§impl From<Box<RequestValidationError>> for AuthorizeError
impl From<Box<RequestValidationError>> for AuthorizeError
Source§fn from(source: Box<RequestValidationError>) -> Self
fn from(source: Box<RequestValidationError>) -> Self
Source§impl From<ParseErrors> for AuthorizeError
impl From<ParseErrors> for AuthorizeError
Source§fn from(err: ParseErrors) -> Self
fn from(err: ParseErrors) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for AuthorizeError
impl !UnwindSafe for AuthorizeError
impl Freeze for AuthorizeError
impl Send for AuthorizeError
impl Sync for AuthorizeError
impl Unpin for AuthorizeError
impl UnsafeUnpin for AuthorizeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request