function shib_auth_role_assignment in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \shib_auth_role_assignment()
Assigns roles to the user's session.
1 call to shib_auth_role_assignment()
- shib_auth_init in ./
shib_auth.module - Creates a new user, if necessary, based on information from the handler.
File
- ./
shib_auth.module, line 703 - Drupal Shibboleth authentication module.
Code
function shib_auth_role_assignment() {
// Generate role cache if it doesn't exists.
shib_auth_generate_rolenames(FALSE);
if (shib_auth_session_valid() && !user_is_anonymous() && empty($_SESSION['shib_auth_account_linking'])) {
shib_auth_assignroles();
}
}