pub trait Authority<C, L>:
Send
+ Sync
+ 'static {
// Required method
fn authorized(
&self,
credentials: C,
) -> impl Future<Output = Option<Extensions>> + Send;
}
Expand description
The Authority
trait is used to determine if a set of Credential
s are authorized.
Required Methods§
Returns true
if the credentials are authorized, otherwise false
.
Object Safety§
This trait is not object safe.