1
{% extends "layout.html" %}
2
{% block body %}
3
<h4> Allow Access ?</h4>
4
<p class="text-muted">
5
  The following application wants to get permission to do stuff(?) on the <i>swt
6
  web</i> platform on your behalf.
7
</p>
8
9
<form role="form" method="POST" action="{{ url_for('oauth.authorize') }}">
10
  <div class="form-group">
11
    <p class="form-control-static text-primary">
12
      {{ client.name }} at {{ client.host_url }} wants
13
      to get permission to post data to swt store
14
    </p>
15
  </div>
16
  <div class="form-group">
17
    <label class="control-label">Scopes</label>
18
    <div class="">
19
      <p class="form-control-static">{{ scopes|join(',') }}</p>
20
    </div>
21
  </div>
22
  <input type="hidden" name="client_id" value="{{ client.id }}">
23
  <input type="hidden" name="scope" value="{{ scopes|join(' ') }}">
24
  <input type="hidden" name="response_type" value="{{ response_type }}">
25
  {% if state %}
26
  <input type="hidden" name="state" value="{{ state }}">
27
  {% endif %}
28
  <button type="submit" name="confirm" value="yes" class="btn btn-primary">Allow</button>
29
  <button type="submit" name="confirm" value="no" class="btn btn-default">Deny</button>
30
</form>
31
32
{% endblock %}
33
34
{% block scripts %}
35
36
<script>
37
  var created = new Date("{{ user.created }}");
38
  window.onload = function() {
39
    $('#user-created').html(created.toString());
40
  };
41
</script>
42
43
{% endblock %}