pub trait AuthenticationApi {
// Required methods
fn bearer_authorization(
&self,
token: &Bearer,
) -> Result<Authorization, ApiError>;
fn apikey_authorization(
&self,
token: &str,
) -> Result<Authorization, ApiError>;
fn basic_authorization(
&self,
basic: &Basic,
) -> Result<Authorization, ApiError>;
}
Required Methods§
Method should be implemented (see example-code) to map Bearer-token to an Authorization
Method should be implemented (see example-code) to map ApiKey to an Authorization
Method should be implemented (see example-code) to map Basic (Username:password) to an Authorization
Implementations on Foreign Types§
Source§impl<T, RC> AuthenticationApi for AllowAllAuthenticator<T, RC>
impl<T, RC> AuthenticationApi for AllowAllAuthenticator<T, RC>
Get method to map Bearer-token to an Authorization
Get method to map api-key to an Authorization
Get method to map basic token to an Authorization