adding client id and secret params to load FrontEnd data

This commit is contained in:
Erik Amaru Ortiz
2014-06-17 14:38:43 -04:00
parent 57e12bab24
commit 0e18a5c4f9

View File

@@ -50,6 +50,8 @@ class Designer extends Controller
$oauthServer = new \ProcessMaker\Services\OAuth2\Server();
$response = $oauthServer->getServer()->handleTokenRequest($request);
$clientToken = $response->getParameters();
$clientToken["client_id"] = $client['CLIENT_ID'];
$clientToken["client_secret"] = $client['CLIENT_SECRET'];
$this->setVar('prj_uid', $proUid);
$this->setVar('app_uid', $appUid);