PHP Класс Kimai_Auth_Http

Наследование: extends Kimai_Auth_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$HTAUTH_ALLOW_AUTOLOGIN Set true to allow web server authorized automatic logins
$HTAUTH_FORCE_USERNAME_LOWERCASE Set true to force username to lower case before searching Kimai database
$HTAUTH_PHP_AUTH_USER Check for PHP_AUTH_USER server variable
$HTAUTH_REDIRECT_REMOTE_USER Check for REDIRECT_REMOTE_USER server variable
$HTAUTH_REMOTE_USER Check for REMOTE_USER server variable
$HTAUTH_USER_AUTOCREATE Set true to create Kimai user for web server authorized users not in database

Открытые методы

Метод Описание
authenticate ( string $username, string $password, integer &$userId ) : boolean
autoLoginPossible ( ) : boolean Decides whether this authentication method should be used to authenticate users before they have provided any credentials.
performAutoLogin ( integer &$userId ) : boolean Try to authenticate the user before he sees the login page.

Описание методов

authenticate() публичный Метод

public authenticate ( string $username, string $password, integer &$userId ) : boolean
$username string
$password string
$userId integer
Результат boolean

autoLoginPossible() публичный Метод

This allows users to be logged in automatically. Mostly used with SSO (single sign on) solutions.
public autoLoginPossible ( ) : boolean
Результат boolean true if this authentication method can login users without credentials, false otherwise

performAutoLogin() публичный Метод

Try to authenticate the user before he sees the login page.
public performAutoLogin ( integer &$userId ) : boolean
$userId integer is set to the id of the user. If none exists it will be false
Результат boolean either true if the user could be authenticated or false otherwise

Описание свойств

$HTAUTH_ALLOW_AUTOLOGIN защищенное свойство

Set true to allow web server authorized automatic logins
protected $HTAUTH_ALLOW_AUTOLOGIN

$HTAUTH_FORCE_USERNAME_LOWERCASE защищенное свойство

Set true to force username to lower case before searching Kimai database
protected $HTAUTH_FORCE_USERNAME_LOWERCASE

$HTAUTH_PHP_AUTH_USER защищенное свойство

Check for PHP_AUTH_USER server variable
protected $HTAUTH_PHP_AUTH_USER

$HTAUTH_REDIRECT_REMOTE_USER защищенное свойство

Check for REDIRECT_REMOTE_USER server variable
protected $HTAUTH_REDIRECT_REMOTE_USER

$HTAUTH_REMOTE_USER защищенное свойство

Check for REMOTE_USER server variable
protected $HTAUTH_REMOTE_USER

$HTAUTH_USER_AUTOCREATE защищенное свойство

Set true to create Kimai user for web server authorized users not in database
protected $HTAUTH_USER_AUTOCREATE