object BasicAuth
Ordering
- Alphabetic
- By Inheritance
Inherited
- BasicAuth
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
BasicAuthenticator[F[_], A] = (BasicCredentials) ⇒ F[Option[A]]
Validates a plaintext password (presumably by comparing it to a hashed value).
Validates a plaintext password (presumably by comparing it to a hashed value). A Some value indicates success; None indicates the password failed to validate.
Value Members
-
def
apply[F[_], A](realm: String, validate: BasicAuthenticator[F, A])(implicit arg0: Sync[F]): AuthMiddleware[F, A]
Construct authentication middleware that can validate the client-provided plaintext password against something else (like a stored, hashed password).
Construct authentication middleware that can validate the client-provided plaintext password against something else (like a stored, hashed password).
- realm
The realm used for authentication purposes.
- validate
Function that validates a plaintext password
- def challenge[F[_], A](realm: String, validate: BasicAuthenticator[F, A])(implicit arg0: Applicative[F]): Kleisli[F, Request[F], Either[Challenge, AuthedRequest[F, A]]]