mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Merge
This commit is contained in:
@@ -271,7 +271,7 @@ return call_user_func(function()
|
||||
$route = "/applications/dev/new";
|
||||
$app->get($route, function() use ($app)
|
||||
{
|
||||
$var = array("violations" => null);
|
||||
$var = array("violations" => null, 'form' => null);
|
||||
|
||||
return $app['response']('api/auth/application_dev_new.twig', $var);
|
||||
});
|
||||
|
@@ -406,11 +406,22 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
'response_type' => $request->get('response_type', false)
|
||||
, 'client_id' => $request->get('client_id', false)
|
||||
, 'redirect_uri' => $request->get('redirect_uri', false)
|
||||
, 'scope' => $request->get('scope', false)
|
||||
, 'state' => $request->get('state', false)
|
||||
);
|
||||
|
||||
|
||||
$scope = $request->get('scope', false);
|
||||
$state = $request->get('state', false);
|
||||
|
||||
if($state)
|
||||
{
|
||||
$datas["state"] = $state;
|
||||
}
|
||||
|
||||
if($scope)
|
||||
{
|
||||
$datas["scope"] = $scope;
|
||||
}
|
||||
|
||||
$filters = array(
|
||||
"client_id" => array(
|
||||
"filter" => FILTER_VALIDATE_REGEXP
|
||||
|
@@ -192,7 +192,6 @@ class connection
|
||||
self::$_PDO_instance[$name] = null;
|
||||
unset(self::$_PDO_instance[$name]);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<li>
|
||||
<div>
|
||||
<span class='app-row'><strong><a class="link" id="app_dev_new" href="/api/oauthv2/applications/dev/{{app.get_id}}/show">{{app.get_name}}</a></strong></span>
|
||||
<span class='app-row'>{{app.get_desciption }}</span>
|
||||
<span class='app-row'>{{app.get_description }}</span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user