function shib_auth_login in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth_forms.inc \shib_auth_login()
This function prevents drupal loading a cached page after shibboleth login.
1 string reference to 'shib_auth_login'
- shib_auth_menu in ./
shib_auth.module - Implements hook_menu().
File
- ./
shib_auth_forms.inc, line 238 - Drupal forms of the Shibboleth authentication module.
Code
function shib_auth_login() {
$queries = $_GET;
// Get the path stripped of the shib_login/ prefix.
$path = drupal_substr($_GET['q'], 11);
if ($path != 'shib_link') {
// Remove q (Drupal path) from further queries.
unset($queries['q']);
drupal_goto($path, array(
'query' => $queries,
));
}
else {
drupal_goto('shib_login/user');
}
}