PHP Класс Xavrsl\Cas\Sso

Автор: Xavier Roussel
Показать файл Открыть проект

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

Метод Описание
__construct ( $config )
authenticate ( ) Authenticates the user based on the current request.
checkAuthenticate ( ) Authenticates the user based on the current request without redirect to login page.
getAttributes ( ) : array | null getAttributes' simple wrapper
getCurrentUser ( ) : array | null Returns information about the currently logged in user.
isAuthenticated ( ) : boolean Checks to see is user is authenticated
logout ( $params = [] ) : none This method is used to logout from CAS
user ( ) : array | null getCurrentUser Alias

Приватные методы

Метод Описание
configureCasClient ( ) Configure CAS Client
configureDebug ( ) Configure CAS debug
configureProxyChain ( ) Configure Cas Proxy Chain
configureSslValidation ( ) Configure SSL Validation
initializeCas ( ) : none Make PHPCAS Initialization
isPretending ( ) isPretending

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

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

public __construct ( $config )
$config

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

If authentication fails, an exception must be thrown.
public authenticate ( )

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

If authentication fails, an exception must be thrown.
public checkAuthenticate ( )

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

getAttributes' simple wrapper
public getAttributes ( ) : array | null
Результат array | null

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

If nobody is currently logged in, this method should return null.
public getCurrentUser ( ) : array | null
Результат array | null

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

Checks to see is user is authenticated
public isAuthenticated ( ) : boolean
Результат boolean

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

This method is used to logout from CAS
public logout ( $params = [] ) : none
Результат none

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

getCurrentUser Alias
public user ( ) : array | null
Результат array | null