You are here

function account_sync_sso_goto in Account Sync 7.2

Same name and namespace in other branches
  1. 6 account_sync_sso/account_sync_sso.module \account_sync_sso_goto()

Redirect the user to the server they wish to login at.

1 string reference to 'account_sync_sso_goto'
account_sync_sso_menu in account_sync_sso/account_sync_sso.module
Implements hook_menu().

File

account_sync_sso/account_sync_sso.module, line 143
Handle single sign-on functionality for the account sync module

Code

function account_sync_sso_goto($server) {
  $url = account_sync_sso_login_generate_url();
  if ($target_path = account_sync_target_path(func_get_args())) {
    $target_path = '/' . $target_path;
  }
  drupal_goto('http://' . $server . '/' . $url . $target_path);
}