Skip to content

Commit

Permalink
Update demo/grant_type doc design.
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Dec 23, 2014
1 parent ffed2e1 commit 8341368
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 133 deletions.
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 %}
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 %}
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 %}
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 %}

0 comments on commit 8341368

Please sign in to comment.