Skip to content

Commit

Permalink
Change demo/authorize/* to demo/request/*.
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Jul 7, 2015
1 parent 1081255 commit d196eb5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/TestBundle/Controller/DemoController.php
Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand Down
8 changes: 4 additions & 4 deletions tests/TestBundle/Resources/config/routing.php
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions tests/TestBundle/Resources/views/demo/index.html.twig
Expand Up @@ -14,14 +14,14 @@
<p>The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.1">4.1. Authorization Code Grant</a></footer>
</blockquote>
<p><a class="btn btn-primary" role="button" href="{{ path('demo_authorize_code') }}">Authorization Request</a></p>
<p><a class="btn btn-primary" role="button" href="{{ path('demo_request_code') }}">Authorization Request</a></p>

<h2 id="implicit-grant" class="page-header">Implicit Grant</h2>
<blockquote>
<p>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.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.2">4.2. Implicit Grant</a></footer>
</blockquote>
<p><a class="btn btn-primary" role="button" href="{{ path('demo_authorize_token') }}">Authorization Request</a></p>
<p><a class="btn btn-primary" role="button" href="{{ path('demo_request_token') }}">Authorization Request</a></p>

<h2 id="resource-owner-password-credentials-grant" class="page-header">Resource Owner Password Credentials Grant</h2>
<blockquote>
Expand Down

0 comments on commit d196eb5

Please sign in to comment.