-
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.
Update docs style for remaining demo.
- Loading branch information
Showing
4 changed files
with
93 additions
and
71 deletions.
There are no files selected for viewing
42 changes: 24 additions & 18 deletions
42
...ucket/OAuth2/Tests/TestBundle/Resources/views/demo/resource_type/debug_endpoint.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,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 %} |
42 changes: 24 additions & 18 deletions
42
tests/AuthBucket/OAuth2/Tests/TestBundle/Resources/views/demo/resource_type/model.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,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 %} |
39 changes: 22 additions & 17 deletions
39
tests/AuthBucket/OAuth2/Tests/TestBundle/Resources/views/demo/response_type/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,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 %} |
41 changes: 23 additions & 18 deletions
41
tests/AuthBucket/OAuth2/Tests/TestBundle/Resources/views/demo/response_type/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,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 %} |