-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
158 additions
and
133 deletions.
There are no files selected for viewing
48 changes: 27 additions & 21 deletions
48
...cket/OAuth2/Tests/TestBundle/Resources/views/demo/grant_type/authorization_code.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
{% extends 'html.html.twig' %} | ||
|
||
{% use 'page.html.twig' %} | ||
|
||
{% set head_title = 'Token Endpoint | AuthBucket\\OAuth2' %} | ||
|
||
{% block page %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = authorization_code)</small></h1> | ||
<blockquote> | ||
<p>The client makes a request to the token endpoint by sending the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.1.3">4.1.3. Access Token Request</a></footer> | ||
</blockquote> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
{% block main %} | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = authorization_code)</small></h1> | ||
<blockquote> | ||
<p>The client makes a request to the token endpoint by sending the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.1.3">4.1.3. Access Token Request</a></footer> | ||
</blockquote> | ||
|
||
<h2 id="actions" class="page-header">Actions</h2> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
|
||
<h2 class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
<h2 id="access-token-response" class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
|
||
<h2 id="access-token-request" class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
{% endblock %} | ||
|
||
<h2 class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% block aside %} | ||
<ul class="nav" data-spy="affix"> | ||
<li><a href="#actions">Actions</a></li> | ||
<li><a href="#access-token-response">Access Token Response</a></li> | ||
<li><a href="#access-token-request">Access Token Request</a></li> | ||
</ul> | ||
{% endblock %} |
48 changes: 27 additions & 21 deletions
48
...cket/OAuth2/Tests/TestBundle/Resources/views/demo/grant_type/client_credentials.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
{% extends 'html.html.twig' %} | ||
|
||
{% use 'page.html.twig' %} | ||
|
||
{% set head_title = 'Token Endpoint | AuthBucket\\OAuth2' %} | ||
|
||
{% block page %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = client_credentials)</small></h1> | ||
<blockquote> | ||
<p>The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.4.2">4.4.2. Access Token Request</a></footer> | ||
</blockquote> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
{% block main %} | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = client_credentials)</small></h1> | ||
<blockquote> | ||
<p>The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.4.2">4.4.2. Access Token Request</a></footer> | ||
</blockquote> | ||
|
||
<h2 id="actions" class="page-header">Actions</h2> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
|
||
<h2 class="page-header">Access Token Response:</h2> | ||
{{ dump(access_token_response) }} | ||
<h2 id="access-token-response" class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
|
||
<h2 id="access-token-request" class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
{% endblock %} | ||
|
||
<h2 class="page-header">Access Token Request:</h2> | ||
{{ dump(access_token_request) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% block aside %} | ||
<ul class="nav" data-spy="affix"> | ||
<li><a href="#actions">Actions</a></li> | ||
<li><a href="#access-token-response">Access Token Response</a></li> | ||
<li><a href="#access-token-request">Access Token Request</a></li> | ||
</ul> | ||
{% endblock %} |
48 changes: 27 additions & 21 deletions
48
tests/AuthBucket/OAuth2/Tests/TestBundle/Resources/views/demo/grant_type/password.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
{% extends 'html.html.twig' %} | ||
|
||
{% use 'page.html.twig' %} | ||
|
||
{% set head_title = 'Token Endpoint | AuthBucket\\OAuth2' %} | ||
|
||
{% block page %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = password)</small></h1> | ||
<blockquote> | ||
<p>The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.3.2">4.3.2. Access Token Request</a></footer> | ||
</blockquote> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
{% block main %} | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = password)</small></h1> | ||
<blockquote> | ||
<p>The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.3.2">4.3.2. Access Token Request</a></footer> | ||
</blockquote> | ||
|
||
<h2 id="actions" class="page-header">Actions</h2> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
|
||
<h2 class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
<h2 id="access-token-response" class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
|
||
<h2 id="access-token-request" class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
{% endblock %} | ||
|
||
<h2 class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% block aside %} | ||
<ul class="nav" data-spy="affix"> | ||
<li><a href="#actions">Actions</a></li> | ||
<li><a href="#access-token-response">Access Token Response</a></li> | ||
<li><a href="#access-token-request">Access Token Request</a></li> | ||
</ul> | ||
{% endblock %} |
48 changes: 27 additions & 21 deletions
48
...uthBucket/OAuth2/Tests/TestBundle/Resources/views/demo/grant_type/refresh_token.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
{% extends 'html.html.twig' %} | ||
|
||
{% use 'page.html.twig' %} | ||
|
||
{% set head_title = 'Token Endpoint | AuthBucket\\OAuth2' %} | ||
|
||
{% block page %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = refresh_token)</small></h1> | ||
<blockquote> | ||
<p>If the authorization server issued a refresh token to the client, the client makes a refresh request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-6">6. Refreshing an Access Token</a></footer> | ||
</blockquote> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
{% block main %} | ||
<h1 class="page-header">Token Endpoint <small>(grant_type = refresh_token)</small></h1> | ||
<blockquote> | ||
<p>If the authorization server issued a refresh token to the client, the client makes a refresh request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:</p> | ||
<footer><a href="http://tools.ietf.org/html/rfc6749#section-6">6. Refreshing an Access Token</a></footer> | ||
</blockquote> | ||
|
||
<h2 id="actions" class="page-header">Actions</h2> | ||
<p><a class="btn btn-primary" role="button" href="{{ model_path }}">Debug with Local Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ debug_path }}">Debug with Remote Resource</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ refresh_path }}">Refreshing an Access Token</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p> | ||
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p> | ||
|
||
<h2 class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
<h2 id="access-token-response" class="page-header">Access Token Response</h2> | ||
{{ dump(access_token_response) }} | ||
|
||
<h2 id="access-token-request" class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
{% endblock %} | ||
|
||
<h2 class="page-header">Access Token Request</h2> | ||
{{ dump(access_token_request) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% block aside %} | ||
<ul class="nav" data-spy="affix"> | ||
<li><a href="#actions">Actions</a></li> | ||
<li><a href="#access-token-response">Access Token Response</a></li> | ||
<li><a href="#access-token-request">Access Token Request</a></li> | ||
</ul> | ||
{% endblock %} |
Oops, something went wrong.