openid_redirect

Versions
6 – 7
openid_redirect($url, $message)

Creates a js auto-submit redirect for (for the 2.x protocol)

▾ 1 function calls openid_redirect()

openid_begin in modules/openid/openid.module
The initial step of OpenID authentication responsible for the following:

Code

modules/openid/openid.inc, line 42

<?php
function openid_redirect($url, $message) {
  $output = '<html><head><title>'. t('OpenID redirect') ."</title></head>\n<body>";
  $output .= drupal_get_form('openid_redirect_form', $url, $message);
  $output .= '<script type="text/javascript">document.getElementById("openid-redirect-form").submit();</script>';
  $output .= "</body></html>\n";
  print $output;
  exit;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.