Package

core3

security

Permalink

package security

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

Type Members

  1. class Auth0UserToken extends UserTokenBase

    Permalink

    User data container.

  2. class LocalAuthUserToken extends UserTokenBase

    Permalink

    User data container.

  3. class NoAuthUserToken extends UserTokenBase

    Permalink
  4. trait UserTokenBase extends AnyRef

    Permalink

    Base trait for implementing user containers.

Value Members

  1. object LocalAuthUserToken

    Permalink
  2. def authenticateUser(userID: String, password: String, random: SecureRandom, db: DatabaseAbstractionLayer, authConfig: Config)(implicit ec: ExecutionContext): Future[LocalUser]

    Permalink

    Attempts to authenticate a user with the supplied credentials.

    Attempts to authenticate a user with the supplied credentials.

    userID

    the ID of the user

    password

    the un-hashed user password

    random

    the RNG to be used for generating random strings

    db

    the DB to be used for performing the user query

    authConfig

    authentication config object

    returns

    Futurecore3.database.containers.core.LocalUser - the authenticated user, if the process is successful

  3. def getBasicAuthCredentials(request: Request[AnyContent]): Option[(String, String)]

    Permalink

    Attempts to retrieve user authentication credentials from the supplied HTTP request.

    Attempts to retrieve user authentication credentials from the supplied HTTP request.

    request

    the request to get credentials from

    returns

    the requested credentials, if they were made available

  4. def getRandomString(withSize: Int, random: SecureRandom): String

    Permalink

    Generates a new random string with the specified size.

    Generates a new random string with the specified size.

    withSize

    the size of the string to be generated

    random

    the RNG to be used

    returns

    the requested string

  5. def hashPassword(rawPassword: String, withSalt: String, authConfig: Config): String

    Permalink

    Hashes the supplied password the the specified salt.

    Hashes the supplied password the the specified salt.

    rawPassword

    the password to hash

    withSalt

    the salt to be used for the hashing

    authConfig

    authentication config object

    returns

    the hashed password

  6. def hashPassword(rawPassword: String, authConfig: Config, random: SecureRandom): (String, String)

    Permalink

    Hashes the supplied password with a new random salt.

    Hashes the supplied password with a new random salt.

    rawPassword

    the password to hash

    authConfig

    authentication config object

    random

    the RNG to be used to generate the salt

    returns

    (hashedPassword, randomSalt)

Inherited from AnyRef

Inherited from Any

Ungrouped