function _simplesamlphp_auth_allow_user_by_attribute in simpleSAMLphp Authentication 7.3
Asks all modules if current federated user is allowed to login. Returns FALSE if at least one module returns FALSE
1 call to _simplesamlphp_auth_allow_user_by_attribute()
- _simplesaml_auth_login_register in ./
simplesamlphp_auth.inc - Performs login and/or register actions for SAML authenticated users.
File
- ./
simplesamlphp_auth.inc, line 69 - Contains non-hook implementations.
Code
function _simplesamlphp_auth_allow_user_by_attribute() {
$attributes = simplesamlphp_auth_get_attributes();
foreach (module_implements('simplesamlphp_auth_allow_login') as $module) {
if (module_invoke($module, 'simplesamlphp_auth_allow_login', $attributes) === FALSE) {
return FALSE;
}
}
return TRUE;
}