BasicAuth

object BasicAuth

Provides Basic Authentication from RFC 2617.

class Object
trait Matchable
class Any

Type members

Types

type BasicAuthenticator[F[_], A] = BasicCredentials => F[Option[A]]

Validates a plaintext password (presumably by comparing it to a hashed value). A Some value indicates success; None indicates the password failed to validate.

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

Concrete methods

def apply[F[_], A](realm: String, validate: F => A)(implicit evidence$1: Sync[F]): 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).

Value Params
realm

The realm used for authentication purposes.

validate

Function that validates a plaintext password

def challenge[F[_], A](realm: String, validate: F => A)(implicit evidence$2: Applicative[F]): Kleisli[F, Request[F], Either[Challenge, ContextRequest[F, A]]]