PHP Class Xavrsl\Cas\Sso

Author: Xavier Roussel
Afficher le fichier Open project: xavrsl/cas

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
configureCasClient ( ) Configure CAS Client
configureDebug ( ) Configure CAS debug
configureProxyChain ( ) Configure Cas Proxy Chain
configureSslValidation ( ) Configure SSL Validation
initializeCas ( ) : none Make PHPCAS Initialization
isPretending ( ) isPretending

Method Details

__construct() public méthode

public __construct ( $config )
$config

authenticate() public méthode

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

checkAuthenticate() public méthode

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

getAttributes() public méthode

getAttributes' simple wrapper
public getAttributes ( ) : array | null
Résultat array | null

getCurrentUser() public méthode

If nobody is currently logged in, this method should return null.
public getCurrentUser ( ) : array | null
Résultat array | null

isAuthenticated() public méthode

Checks to see is user is authenticated
public isAuthenticated ( ) : boolean
Résultat boolean

logout() public méthode

This method is used to logout from CAS
public logout ( $params = [] ) : none
Résultat none

user() public méthode

getCurrentUser Alias
public user ( ) : array | null
Résultat array | null