Function skip_authorize
Source pub fn skip_authorize() -> AuthorizationToken
Expand description
Skips authorize(), for anonymous and test-user code paths where there is no user to check.
§Example
ⓘasync fn example_function(
) -> ControllerResult<....> {
let token = skip_authorize();
token.authorized_ok(web::Json(organizations))
}