object BasicAuth
Ordering
- Alphabetic
- By Inheritance
Inherited
- BasicAuth
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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).
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def challenge[A](realm: String, validate: BasicAuthenticator[A]): Service[Request, Either[Challenge, AuthedRequest[A]]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )