function shib_auth_role_assignment in Shibboleth Authentication 6.4
Same name and namespace in other branches
- 7.4 shib_auth.module \shib_auth_role_assignment()
Assign roles to the user's session
1 call to shib_auth_role_assignment()
- shib_auth_init in ./
shib_auth.module - Create a new user based on informations from the Shibboleth handler if it's necessary or log in.
File
- ./
shib_auth.module, line 574 - 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();
}
}