Module telescope::web::middlewares::authorization [−][src]
Expand description
Middleware for resource access management (authorization).
Structs
Authorization middleware check’s a user’s credentials using a stored function
before calling the sub-service. This function may return any telescope error,
including TelescopeError::Forbidden
to stop access to a resource.
Wrapper type that provides authorization gated access to a service.
Functions
Extract the RCOS user ID authenticated with a request or error.
Type Definitions
The type representing an authorization function reference.
Authorization functions accept an RCOS user ID and respond with
Ok(())
on success or a telescope error preventing access.
The type returned by authorization functions.