PHP 클래스 Kimai_Auth_Http

상속: extends Kimai_Auth_Abstract
파일 보기 프로젝트 열기: kimai/kimai

보호된 프로퍼티들

프로퍼티 타입 설명
$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