finishClientAuthorization($_POST["accept"] == "Yep", $userId, $_POST); } try { $auth_params = $oauth->getAuthorizeParams(); } catch (OAuth2ServerException $oauthError) { $oauthError->sendHttpResponse(); } ?>