Skip to content

Commit

Permalink
Update docs style for remaining demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Dec 23, 2014
1 parent 8341368 commit e9fbd5f
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 71 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{% extends 'html.html.twig' %}

{% use 'page.html.twig' %}

{% set head_title = 'Resource Endpoint | AuthBucket\\OAuth2' %}

{% block page %}
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">Resource Endpoint <small>(resource_type = debug_endpoint)</small></h1>
<blockquote>
<p>The client accesses protected resources by presenting the access token to the resource server.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-7">7. Accessing Protected Resources</a></footer>
</blockquote>
<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">Resource Endpoint <small>(resource_type = debug_endpoint)</small></h1>
<blockquote>
<p>The client accesses protected resources by presenting the access token to the resource server.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-7">7. Accessing Protected Resources</a></footer>
</blockquote>

<h2 id="actions" class="page-header">Actions</h2>
<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">Resource Response</h2>
{{ dump(resource_response) }}
<h2 id="resource-response" class="page-header">Resource Response</h2>
{{ dump(resource_response) }}

<h2 id="resource-request" class="page-header">Resource Request</h2>
{{ dump(resource_request) }}
{% endblock %}

<h2 class="page-header">Resource Request</h2>
{{ dump(resource_request) }}
</div>
</div>
</div>
{% block aside %}
<ul class="nav" data-spy="affix">
<li><a href="#actions">Actions</a></li>
<li><a href="#resource-response">Resource Response</a></li>
<li><a href="#resource-request">Resource Request</a></li>
</ul>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{% extends 'html.html.twig' %}

{% use 'page.html.twig' %}

{% set head_title = 'Resource Endpoint | AuthBucket\\OAuth2' %}

{% block page %}
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">Resource Endpoint <small>(resource_type = model)</small></h1>
<blockquote>
<p>The client accesses protected resources by presenting the access token to the resource server.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-7">7. Accessing Protected Resources</a></footer>
</blockquote>
<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">Resource Endpoint <small>(resource_type = model)</small></h1>
<blockquote>
<p>The client accesses protected resources by presenting the access token to the resource server.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-7">7. Accessing Protected Resources</a></footer>
</blockquote>

<h2 id="actions" class="page-header">Actions</h2>
<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">Resource Response</h2>
{{ dump(resource_response) }}
<h2 id="resource-response" class="page-header">Resource Response</h2>
{{ dump(resource_response) }}

<h2 id="resource-request" class="page-header">Resource Request</h2>
{{ dump(resource_request) }}
{% endblock %}

<h2 class="page-header">Resource Request</h2>
{{ dump(resource_request) }}
</div>
</div>
</div>
{% block aside %}
<ul class="nav" data-spy="affix">
<li><a href="#actions">Actions</a></li>
<li><a href="#resource-response">Resource Response</a></li>
<li><a href="#resource-request">Resource Request</a></li>
</ul>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
{% extends 'html.html.twig' %}

{% use 'page.html.twig' %}

{% set head_title = 'Authorization Endpoint | AuthBucket\\OAuth2' %}

{% block page %}
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">Authorization Endpoint <small>(response_type = code)</small></h1>
<blockquote>
<p>The client directs the resource owner to the constructed URI using an HTTP redirection response, or by other means available to it via the user-agent.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.1.1">4.1.1. Authorization Request</a></footer>
</blockquote>
<p><a class="btn btn-primary" role="button" href="{{ token_path }}">Access Token Request</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">Authorization Endpoint <small>(response_type = code)</small></h1>
<blockquote>
<p>The client directs the resource owner to the constructed URI using an HTTP redirection response, or by other means available to it via the user-agent.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.1.1">4.1.1. Authorization Request</a></footer>
</blockquote>

<h2 id="actions" class="page-header">Actions</h2>
<p><a class="btn btn-primary" role="button" href="{{ token_path }}">Access Token Request</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 id="authorization response" class="page-header">Authorization Response</h2>
{{ dump(authorization_response) }}
{% endblock %}

<h2 class="page-header">Authorization response</h2>
{{ dump(authorization_response) }}
</div>
</div>
</div>
{% block aside %}
<ul class="nav" data-spy="affix">
<li><a href="#actions">Actions</a></li>
<li><a href="#authorization response">Authorization Response</a></li>
</ul>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{% extends 'html.html.twig' %}

{% use 'page.html.twig' %}

{% set head_title = 'Authorization Endpoint | AuthBucket\\OAuth2' %}

{% block page %}
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">Authorization Endpoint <small>(response_type = token)</small></h1>
<blockquote>
<p>The client directs the resource owner to the constructed URI using an HTTP redirection response, or by other means available to it via the user-agent.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.2.1">4.2.1. Authorization 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="{{ 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">Authorization Endpoint <small>(response_type = token)</small></h1>
<blockquote>
<p>The client directs the resource owner to the constructed URI using an HTTP redirection response, or by other means available to it via the user-agent.</p>
<footer><a href="http://tools.ietf.org/html/rfc6749#section-4.2.1">4.2.1. Authorization 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="{{ path('demo') }}">Return</a></p>
<p><a class="btn btn-primary" role="button" href="{{ path('oauth2_authorize_logout') }}">Logout</a></p>

<h2 id="access-token-response" class="page-header">Access Token Response</h2>
{{ dump(access_token_response) }}
{% endblock %}

<h2 class="page-header">Access Token Response</h2>
{{ dump(access_token_response) }}
</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>
</ul>
{% endblock %}

0 comments on commit e9fbd5f

Please sign in to comment.