aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/DeveloperController.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-06-22 10:00:23 +0200
committerGitHub <noreply@github.com>2017-06-22 10:00:23 +0200
commitd0702f9fbd7aa8bf47948b44007cccde2fa66cc6 (patch)
tree00964db846a58922756b99fcca2cca9467706fbe /src/Wallabag/ApiBundle/Controller/DeveloperController.php
parent8c68acff2abe0573e287ad9ee4589668d1bb7ffa (diff)
parentcaa0b1765b8c249ff4a868980d90e3410b26b664 (diff)
downloadwallabag-d0702f9fbd7aa8bf47948b44007cccde2fa66cc6.tar.gz
wallabag-d0702f9fbd7aa8bf47948b44007cccde2fa66cc6.tar.zst
wallabag-d0702f9fbd7aa8bf47948b44007cccde2fa66cc6.zip
Merge pull request #3227 from wallabag/oauth-client-credentials
Add client_credentials oAuth2 auth method
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