Skip to main content

build_authorize_fn

Function build_authorize_fn 

Source
pub fn build_authorize_fn(policy_client: PolicyClient) -> AuthorizeFn
Expand description

Build an AuthorizeFn backed by a PolicyClient.

The returned closure is async-compatible (returns a boxed future) so it works on single-threaded runtimes used by RequestService.