Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. https://site.com/home/index.php?email=first.last@thomsonreuters.com&firstname=First&lastname=Last&marketgroup=43003&uid=4334525&time=2014:07:24:19:14:57&digest=1758b84916f36245cad17fd325f8d3&returnurl=https://site.com/sandbox/subsite
  2.  
  3. define('SSO_REDIRECT', 'https://sso.com/login/sso/SSOService?app=' . SSO_APP_ID . '&returnurl=' . urlencode('https://site.com/sandbox/subsite'));
  4.  
  5. // Start authentication and authorization
  6. if (!isset($_SESSION['USER_ID']) && !isset($_POST['digest'])) {
  7. // We've got no session and we've not returned from SSO, so let's redirect to SSO
  8. header('Location: ' . SSO_REDIRECT);
  9. die();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement