Authenticator::AuroraID
- Class to handle authentication of AURORA REST-server internal user-accounts.
It follows the same use as the Authenticator-class. See the Authenticator placeholder class for more information.
A class that inherits from the Authenticator placeholder class. Please see there for more information.
AuroraID uses the crypt-facility and SHA-512 encryption of passwords (id=6).
See the Authenticator placeholder class for more information.
See description in the placeholder Authenticator-class.
Validates an internal AURORA REST-server accounts. It expects to get an authentication string (SCALAR) which is formatted in the following way:
EMAIL,PASSWORD
Password in this case is expected to be un-encrypted/clear-text.
It calls the generate()-method on the authentication string and then uses the AURORA database to check if such an account exists and that the password matches.
It returns the AURORA database userid (entity id - int) of the user upon success or 0 upon user not found.
Undef is returned upon failure. Check the error()-method for more information.
See description in the placeholder Authenticator-class for more information on the framework itself.
Generates a AuroraID authentication string (=password encrypted) by taking a raw password (unencrypted).
The salt for the encryption is randomly generated each time and consisting of 16 characters as per the crypt-facility.
The function returns an authentication string upon success that consists of:
ENCRYPTED_PASSWORD
where ENCRYPTED_PASSWORD consists of the salt and the encrypted password in the crypt-format.
Undef is returned upon failure. In such a case check the error()-method for more information.
See description in the placeholder Authenticator-class for more information on the framework itself.