Mark the caller of authentication. This will help client integraters determine
problems with their code flow if they call a function such as getUser() before
authentication has occurred.
public markAuthenticationCall ( boolean $auth ) : null | ||
$auth | boolean | True if authentication was successful, false otherwise. |
Résultat | null |
/** * This method is called to check if the user is authenticated (previously or by * tickets given in the URL). * * @return true when the user is authenticated. */ public static function isAuthenticated() { phpCAS::traceBegin(); phpCAS::_validateClientExists(); // call the isAuthenticated method of the $_PHPCAS_CLIENT object $auth = self::$_PHPCAS_CLIENT->isAuthenticated(); // store where the authentication has been checked and the result self::$_PHPCAS_CLIENT->markAuthenticationCall($auth); phpCAS::traceEnd($auth); return $auth; }