Enum brane_tsk::errors::AuthorizeError
source · pub enum AuthorizeError {
Show 14 variants
TokenGenerate {
secret: PathBuf,
err: Error,
},
ClientBuild {
err: Error,
},
ExecuteRequestBuild {
addr: String,
err: Error,
},
ExecuteRequestSend {
addr: String,
err: Error,
},
ExecuteRequestFailure {
addr: String,
code: StatusCode,
err: Option<String>,
},
ExecuteBodyDownload {
addr: String,
err: Error,
},
ExecuteBodyDeserialize {
addr: String,
raw: String,
err: Error,
},
AuthorizationDataMismatch {
pc: ProgramCounter,
data_name: DataName,
},
AuthorizationUserMismatch {
who: String,
authenticated: String,
workflow: String,
},
AuthorizationWrongEdge {
pc: ProgramCounter,
got: String,
},
IllegalEdgeIdx {
func: FunctionId,
got: usize,
max: usize,
},
IllegalFuncId {
got: FunctionId,
},
MissingLocation {
pc: ProgramCounter,
},
NoWorkflowUser {
workflow: String,
},
}
Expand description
A special case of the execute error, this relates to authorization errors in the backend eFLINT reasoner (or other reasoners).
Variants§
TokenGenerate
Failed to generate a new JWT for a request.
ClientBuild
Failed to build a reqwest::Client
.
Fields
err: Error
ExecuteRequestBuild
Failed to build a request to the policy reasoner.
ExecuteRequestSend
Failed to send a request to the policy reasoner.
ExecuteRequestFailure
Request did not succeed
ExecuteBodyDownload
Failed to download the body of an execute request response.
ExecuteBodyDeserialize
Failed to deserialize the body of an execute request response.
AuthorizationDataMismatch
The data to authorize is not input to the task given as context.
AuthorizationUserMismatch
The user to authorize does not execute the given task.
AuthorizationWrongEdge
An edge was referenced to be executed which wasn’t an Edge::Node
.
IllegalEdgeIdx
An edge index given was out-of-bounds for the given function.
IllegalFuncId
A given function does not exist
Fields
got: FunctionId
MissingLocation
There was a node in a workflow with no at
-specified.
Fields
pc: ProgramCounter
NoWorkflowUser
The workflow has no end user specified.
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
Auto Trait Implementations§
impl Freeze for AuthorizeError
impl !RefUnwindSafe for AuthorizeError
impl Send for AuthorizeError
impl Sync for AuthorizeError
impl Unpin for AuthorizeError
impl !UnwindSafe for AuthorizeError
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
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
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>
T
in a tonic::Request