pub trait AuthService: Send + Sync {
// Required method
fn authenticate<'a>(
&'a self,
credentials: &'a Credentials,
) -> BoxFuture<'a, AuthenticatedIdentity>;
}Expand description
Authentication (S1D-003): turns credentials into an
AuthenticatedIdentity. Failures fail closed as
mongreldb_types::errors::ErrorCategory::Unauthenticated.
Required Methods§
Sourcefn authenticate<'a>(
&'a self,
credentials: &'a Credentials,
) -> BoxFuture<'a, AuthenticatedIdentity>
fn authenticate<'a>( &'a self, credentials: &'a Credentials, ) -> BoxFuture<'a, AuthenticatedIdentity>
Verifies credentials and returns the authenticated identity.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".