Packages

object BasicAuth

Provides Basic Authentication from RFC 2617.

Source
BasicAuth.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicAuth
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BasicAuthenticator[A] = (BasicCredentials) ⇒ Task[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

  1. def apply[A](realm: String, validate: BasicAuthenticator[A]): AuthMiddleware[A]

    Construct authentication middleware that can validate the client-provided plaintext password against something else (like a stored, hashed password).

  2. def challenge[A](realm: String, validate: BasicAuthenticator[A]): Service[Request, \/[Challenge, AuthedRequest[A]]]