Trait wasm_service_oauth::AuthCheck [−][src]
Required methods
#[must_use]fn check_authorized<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
req: &'life1 Request,
ctx: &'life2 mut Context,
user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: &'life1 Request,
ctx: &'life2 mut Context,
user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Determine whether user is authorized for the url/action within the app. Returns OK if the user is authorized to perform the request, If not authorized, handler can either set ctx to redirect, or return an error page in HandlerReturn
Implementors
impl AuthCheck for AlwaysAllow
[src]
fn check_authorized<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_req: &'life1 Request,
_ctx: &'life2 mut Context,
_user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_req: &'life1 Request,
_ctx: &'life2 mut Context,
_user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl AuthCheck for AlwaysDeny
[src]
fn check_authorized<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_req: &'life1 Request,
_ctx: &'life2 mut Context,
_user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_req: &'life1 Request,
_ctx: &'life2 mut Context,
_user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl AuthCheck for UserAllowList
[src]
fn check_authorized<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_req: &'life1 Request,
ctx: &'life2 mut Context,
user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_req: &'life1 Request,
ctx: &'life2 mut Context,
user: &'life3 UserData
) -> Pin<Box<dyn Future<Output = Result<(), HandlerReturn>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,