Updates on Oauth register method and New designer open action on process list

This commit is contained in:
Erik Amaru Ortiz
2013-11-06 10:10:36 -04:00
parent e42d3a6eb5
commit a8c9748aa3
12 changed files with 118 additions and 34 deletions

View File

@@ -1,9 +0,0 @@
<?php
$G_MAIN_MENU = 'processmaker';
$G_ID_MENU_SELECTED = 'DESIGNER';
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent( 'view', 'designer/main' );
G::RenderPage('publish', 'minimal');

View File

@@ -18,8 +18,6 @@ switch ($_SERVER['REQUEST_METHOD']) {
\Api\OAuth2\Server::setPmClientId('x-pm-local-client');
$oauthServer = new \Api\OAuth2\Server();
$oauthServer->setConfig('enforce_state', false);
$userid = $_SESSION['USER_LOGGED'];
$authorize = isset($_POST['authorize']) ? (bool) $_POST['authorize'] : false;

View File

@@ -20,6 +20,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
$client->setClientDescription($data['description']);
$client->setClientWebsite($data['web_site']);
$client->setRedirectUri($data['callback_url']);
$client->setUsrUid($_SESSION['USER_LOGGED']);
$client->save();