function simplesamlphp_auth_is_authenticated in simpleSAMLphp Authentication 7.3
Same name and namespace in other branches
- 7.2 simplesamlphp_auth.module \simplesamlphp_auth_is_authenticated()
Determine if the current user is authenticated through SAML.
Return value
bool TRUE if the current user is authenticated through SAML. FALSE otherwise.
File
- ./
simplesamlphp_auth.inc, line 344 - Contains non-hook implementations.
Code
function simplesamlphp_auth_is_authenticated() {
global $_simplesamlphp_auth_as;
// Assume that the user isn't authenticated until proven otherwise.
$authenticated = FALSE;
// If the associated global variable exists, and the auth flag is set, note
// it.
if (isset($_simplesamlphp_auth_as) && $_simplesamlphp_auth_as
->isAuthenticated()) {
$authenticated = TRUE;
}
// Return the result.
return $authenticated;
}