diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-26 18:16:43 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-26 18:16:43 -0500 |
commit | 45e0fc6802b360710becf7ddaf6aed6a9de1d876 (patch) | |
tree | 7299b3c9ad3279929a99a12cfffe485164b73c88 /view | |
parent | e3095ce6b2c76f13a852f0ec5f782d71101a7c6a (diff) | |
download | volse-hubzilla-45e0fc6802b360710becf7ddaf6aed6a9de1d876.tar.gz volse-hubzilla-45e0fc6802b360710becf7ddaf6aed6a9de1d876.tar.bz2 volse-hubzilla-45e0fc6802b360710becf7ddaf6aed6a9de1d876.zip |
Successful OAuth2 sequence demonstrated with the test vehicle, including an authenticated API call using an access_token.
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/oauth2testvehicle.tpl | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/view/tpl/oauth2testvehicle.tpl b/view/tpl/oauth2testvehicle.tpl index 18bbfb1ff..ce46b58c0 100644 --- a/view/tpl/oauth2testvehicle.tpl +++ b/view/tpl/oauth2testvehicle.tpl @@ -4,10 +4,18 @@ <div class="oath2test-form-box"> <form action="{{$baseurl}}/{{$ept.0}}/" method="{{$ept.4}}"> <h3>{{$ept.3}}</h3> - <p>{{$baseurl}}/{{$ept.0}}/?{{foreach $ept.1 as $field}}{{$field.0}}={{$field.1}}&<input type="hidden" name="{{$field.0}}" value="{{$field.1}}" />{{/foreach}} - </p> + {{$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;"> <i class="fa fa-check"></i></span> </form> </div> -{{/foreach}}
\ No newline at end of file +{{/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 |