# any incoming params other than 'go' and 'api' is assumed to be from a redirect back from the api # set step_id to -1 which will cause a lookup of the redirect step in sdkless->authenticate foreach ($_GET as $key => $value) { if (!in_array($key, array('go', 'api'))) { $step_id = -1; break; } } if (empty($_GET['go'])) { $params = $_GET; } } if ($do_auth) { do { try { $output = $sdkless->authenticate($step_id, $params); $step_id = $output['step_id']; $params = $output['params']; $done = $output['done']; } catch (Exception $e) { $error = $e->getMessage(); break; } $step_id++; } while (!$done); } $sdkless_vars = array('CONFIG' => 'config->settings', 'CUSTOM CONFIG' => 'config->settings_custom', 'GLOBAL VARS' => 'global_vars', 'ENDPOINT VARS' => 'endpoint_vars', 'CURL OPTS' => 'response->curl_opts', 'CURL INFO' => 'response->curl_info', 'RESPONSES' => 'response->responses'); ?> <html> <body> <div>