You are here

function shib_auth_get_rolename in Shibboleth Authentication 6.4

Same name and namespace in other branches
  1. 7.4 shib_auth.module \shib_auth_get_rolename()

This function gets the username

Parameters

$rid the id of the role:

Return value

the role name from the cache

2 calls to shib_auth_get_rolename()
shib_auth_process_rule in ./shib_auth.module
This function processes role assignment rules The function matches rule regular expressions with defined server variables If there is a match, it assigns roles to the user logged in @rule the id of the rule currently processed
_shib_auth_list_rules in ./shib_auth_roles_forms.inc
This function lists all rules, and let the admin to do certain actions with them

File

./shib_auth.module, line 1213
Drupal Shibboleth authentication module.

Code

function shib_auth_get_rolename($rid) {
  return $_SESSION['shib_auth_rolecache'][$rid];
}