aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/DeveloperController.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-14 17:30:12 +0200
committerThomas Citharel <tcit@tcit.fr>2017-06-14 17:30:12 +0200
commitcaa0b1765b8c249ff4a868980d90e3410b26b664 (patch)
tree4396948b27c04b41cc02a1c1fee4a9d292f4b858 /src/Wallabag/ApiBundle/Controller/DeveloperController.php
parentf93a3109a5f0999dbbd69131c9e5041c390120c9 (diff)
downloadwallabag-caa0b1765b8c249ff4a868980d90e3410b26b664.tar.gz
wallabag-caa0b1765b8c249ff4a868980d90e3410b26b664.tar.zst
wallabag-caa0b1765b8c249ff4a868980d90e3410b26b664.zip
Add client_credentials oAuth2 auth method
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/DeveloperController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/DeveloperController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/DeveloperController.php b/src/Wallabag/ApiBundle/Controller/DeveloperController.php
index 9cb1b626..9cb73f4c 100644
--- a/src/Wallabag/ApiBundle/Controller/DeveloperController.php
+++ b/src/Wallabag/ApiBundle/Controller/DeveloperController.php
@@ -43,7 +43,7 @@ class DeveloperController extends Controller
43 $clientForm->handleRequest($request); 43 $clientForm->handleRequest($request);
44 44
45 if ($clientForm->isSubmitted() && $clientForm->isValid()) { 45 if ($clientForm->isSubmitted() && $clientForm->isValid()) {
46 $client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']); 46 $client->setAllowedGrantTypes(['client_credentials', 'token', 'authorization_code', 'password', 'refresh_token']);
47 $em->persist($client); 47 $em->persist($client);
48 $em->flush(); 48 $em->flush();
49 49