AuthenticationSignon
class AuthenticationSignon extends AuthenticationPlugin (View source)
Handles the SignOn authentication method
Properties
string | $user | Username | from AuthenticationPlugin |
string | $password | Password | from AuthenticationPlugin |
protected IpAllowDeny | $ipAllowDeny | from AuthenticationPlugin | |
Template | $template | from AuthenticationPlugin |
Methods
Displays authentication form
Gets authentication credentials
Set the user and password after last checkings if required
Stores user credentials after successful login.
User is not allowed to login to MySQL -> authentication failed
Returns URL for login form.
Returns error message for failed authentication.
Callback when user changes password.
Check configuration defined restrictions for authentication
Checks whether two factor authentication is active for given user and performs it.
Set cookie params
Details
__construct()
No description
void
showLoginForm()
Displays authentication form
bool
readCredentials()
Gets authentication credentials
bool
storeCredentials()
Set the user and password after last checkings if required
void
rememberCredentials()
Stores user credentials after successful login.
void
showFailure(string $failure)
User is not allowed to login to MySQL -> authentication failed
void
logOut()
Perform logout
string
getLoginFormURL()
Returns URL for login form.
string
getErrorMessage(string $failure)
Returns error message for failed authentication.
void
handlePasswordChange(string $password)
Callback when user changes password.
void
setSessionAccessTime()
Store session access time in session.
Tries to workaround PHP 5 session garbage collection which looks at the session file's last modified time
void
authenticate()
High level authentication interface
Gets the credentials or shows login form if necessary
void
checkRules()
Check configuration defined restrictions for authentication
void
checkTwoFactor(ServerRequest $request)
Checks whether two factor authentication is active for given user and performs it.
void
setCookieParams(array|null $sessionCookieParams = null)
Set cookie params