PHP 클래스 sspmod_authcrypt_Auth_Source_Htpasswd, simplesamlphp

상속: extends sspmod_core_Auth_UserPassBase
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp

공개 메소드들

메소드 설명
__construct ( array $info, array $config ) Constructor for this authentication source.

보호된 메소드들

메소드 설명
login ( string $username, string $password ) : array Attempt to log in using the given username and password.

메소드 상세

__construct() 공개 메소드

Constructor for this authentication source.
public __construct ( array $info, array $config )
$info array Information about this authentication source.
$config array Configuration.

login() 보호된 메소드

On a successful login, this function should return the username as 'uid' attribute, and merged attributes from the configuration file. On failure, it should throw an exception. A SimpleSAML_Error_Error('WRONGUSERPASS') should be thrown in case of a wrong username OR a wrong password, to prevent the enumeration of usernames.
protected login ( string $username, string $password ) : array
$username string The username the user wrote.
$password string The password the user wrote.
리턴 array Associative array with the users attributes.