trait PasswordProvider extends Provider with ExecutionContextProvider
Base provider which provides shared functionality to authenticate with a password.
- Alphabetic
- By Inheritance
- PasswordProvider
- ExecutionContextProvider
- Provider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
InvalidPassword(error: String) extends State with Product with Serializable
Indicates that the entered password doesn't match with the stored one.
-
case class
NotFound(error: String) extends State with Product with Serializable
Indicates that no password info was stored for the login info.
-
sealed
trait
State extends AnyRef
The authentication state.
-
case class
UnsupportedHasher(error: String) extends State with Product with Serializable
Indicates that the stored password cannot be checked with the registered hashers.
Abstract Value Members
-
abstract
val
authInfoRepository: AuthInfoRepository
The auth info repository.
The auth info repository.
- Attributes
- protected
-
implicit abstract
val
executionContext: ExecutionContext
The execution context to handle the asynchronous operations.
The execution context to handle the asynchronous operations.
- Definition Classes
- ExecutionContextProvider
-
abstract
def
id: String
Gets the provider ID.
-
abstract
val
passwordHasherRegistry: PasswordHasherRegistry
The password hashers used by the application.
The password hashers used by the application.
- Attributes
- protected
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
authenticate(loginInfo: LoginInfo, password: String): Future[State]
Authenticates a user
Authenticates a user
- loginInfo
The login info to search the password info for.
- password
The user password to authenticate with.
- returns
The authentication state.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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
- @throws( ... ) @native()
-
object
Authenticated extends State with Product with Serializable
Indicates that the authentication was successful.