From d196eb55276ae4ded075ad63c53dd7227df93c24 Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Tue, 7 Jul 2015 12:01:45 +0800 Subject: [PATCH] Change demo/authorize/* to demo/request/*. --- tests/TestBundle/Controller/DemoController.php | 4 ++-- tests/TestBundle/Resources/config/routing.php | 8 ++++---- tests/TestBundle/Resources/views/demo/index.html.twig | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/TestBundle/Controller/DemoController.php b/tests/TestBundle/Controller/DemoController.php index 00262709..245837bc 100644 --- a/tests/TestBundle/Controller/DemoController.php +++ b/tests/TestBundle/Controller/DemoController.php @@ -22,7 +22,7 @@ public function indexAction(Request $request, Application $app) return $app['twig']->render('demo/index.html.twig'); } - public function authorizeCodeAction(Request $request, Application $app) + public function requestCodeAction(Request $request, Application $app) { $session = $request->getSession(); @@ -54,7 +54,7 @@ public function authorizeCodeAction(Request $request, Application $app) return $app->redirect($url); } - public function authorizeTokenAction(Request $request, Application $app) + public function requestTokenAction(Request $request, Application $app) { $session = $request->getSession(); diff --git a/tests/TestBundle/Resources/config/routing.php b/tests/TestBundle/Resources/config/routing.php index 05474e47..8c762c51 100644 --- a/tests/TestBundle/Resources/config/routing.php +++ b/tests/TestBundle/Resources/config/routing.php @@ -21,11 +21,11 @@ $app->get('/demo', 'authbucket_oauth2.tests.demo_controller:indexAction') ->bind('demo'); -$app->get('/demo/authorize/code', 'authbucket_oauth2.tests.demo_controller:authorizeCodeAction') - ->bind('demo_authorize_code'); +$app->get('/demo/request/code', 'authbucket_oauth2.tests.demo_controller:requestCodeAction') + ->bind('demo_request_code'); -$app->get('/demo/authorize/token', 'authbucket_oauth2.tests.demo_controller:authorizeTokenAction') - ->bind('demo_authorize_token'); +$app->get('/demo/request/token', 'authbucket_oauth2.tests.demo_controller:requestTokenAction') + ->bind('demo_request_token'); $app->get('/demo/response_type/code', 'authbucket_oauth2.tests.demo_controller:responseTypeCodeAction') ->bind('demo_response_type_code'); diff --git a/tests/TestBundle/Resources/views/demo/index.html.twig b/tests/TestBundle/Resources/views/demo/index.html.twig index 213682b8..a78187d6 100644 --- a/tests/TestBundle/Resources/views/demo/index.html.twig +++ b/tests/TestBundle/Resources/views/demo/index.html.twig @@ -14,14 +14,14 @@

The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients.

-

Authorization Request

+

Authorization Request

The implicit grant type is used to obtain access tokens (it does not support the issuance of refresh tokens) and is optimized for public clients known to operate a particular redirection URI. These clients are typically implemented in a browser using a scripting language such as JavaScript.

-

Authorization Request

+

Authorization Request