aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/oauth2testvehicle.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-31 14:00:09 -0700
committerzotlabs <mike@macgirvin.com>2018-03-31 14:00:09 -0700
commit3bd3686acf2a2878a6275ff9eb303e6ed136d4c9 (patch)
treee23efa0f530f729aaa5364cf32cd8f6cc67b5210 /view/tpl/oauth2testvehicle.tpl
parent4493304fa79aded582b65498aacf6db48a788bdc (diff)
parent6decffb00c00fabcb4ef581084eaca038e340686 (diff)
downloadvolse-hubzilla-3bd3686acf2a2878a6275ff9eb303e6ed136d4c9.tar.gz
volse-hubzilla-3bd3686acf2a2878a6275ff9eb303e6ed136d4c9.tar.bz2
volse-hubzilla-3bd3686acf2a2878a6275ff9eb303e6ed136d4c9.zip
Merge branch 'oauth2' of https://github.com/anaqreon/hubzilla into oauth2
Diffstat (limited to 'view/tpl/oauth2testvehicle.tpl')
-rw-r--r--view/tpl/oauth2testvehicle.tpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/view/tpl/oauth2testvehicle.tpl b/view/tpl/oauth2testvehicle.tpl
new file mode 100644
index 000000000..ce46b58c0
--- /dev/null
+++ b/view/tpl/oauth2testvehicle.tpl
@@ -0,0 +1,21 @@
+<h1>OAuth 2.0 Test Vehicle</h1>
+
+{{foreach $endpoints as $ept}}
+<div class="oath2test-form-box">
+<form action="{{$baseurl}}/{{$ept.0}}/" method="{{$ept.4}}">
+ <h3>{{$ept.3}}</h3>
+ {{$baseurl}}/{{$ept.0}}/?{{foreach $ept.1 as $field}}{{$field.0}}={{$field.1}}&<input type="hidden" name="{{$field.0}}" value="{{$field.1}}" />{{/foreach}}
+ <br>
+ <button type="submit" name="{{$ept.2}}_submit" value="submit" class="btn btn-med" title="">Submit</button>
+ <span style="display: {{if $ept.5}}inline{{else}}none{{/if}}; font-size: 2em;">&nbsp;<i class="fa fa-check"></i></span>
+</form>
+ </div>
+{{/foreach}}
+<div>
+ <h3>API response</h3>
+ <pre style="display: inline-block; overflow-x: auto; white-space: nowrap; width: 100%;">
+ <code>
+ {{$api_response}}
+ </code>
+ </pre>
+</div> \ No newline at end of file