You are here

function shib_auth_submit_redirect in Shibboleth Authentication 6.4

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

User Data Customization function - Redirect user to the appropriate page This function redirects user to the url, she wanted to visit before registering or to login url, if it is set

2 calls to shib_auth_submit_redirect()
shib_auth_custom_form in ./shib_auth.module
If any customization or consent option is enabled, the custom form will show up before registering and forces the user to accept user consent and define username and/or e-mail address (prefilling fields with the data coming from the…
shib_login_authmap in ./shib_auth.module
Login an user based on the shib_authmap informations @uname the username got from IdP @uid drupal user id @umail_single the e-mail address @alreadyloggedin is true if the user has already logged in

File

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

Code

function shib_auth_submit_redirect() {
  if (isset($_SESSION['shib_auth_custom_form_url'])) {
    $redirect_url = $_SESSION['shib_auth_custom_form_url'];
    unset($_SESSION['shib_auth_custom_form_url']);
    drupal_goto($redirect_url);
  }
}