pub trait AuthenticationProvider:
Send
+ Sync
+ 'static
+ Debug {
// Required method
fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
headers: &'life1 HeaderMap,
auth: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
认证提供者抽象 trait Authentication provider abstract trait