code_junkie

OpenID Over SSL with self signed certificate

Nov 11th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Redirect OpenID authentication requests to https:// of same URL
  2. // Assuming valid OpenID operation over GET
  3. if (!isset($_SERVER['HTTPS']) &&
  4. ($_GET['openid_mode'] == 'checkid_immediate' ||
  5. $_GET['openid_mode'] == 'checkid_setup'))
  6. http_redirect("https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
Add Comment
Please, Sign In to add comment