~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/oauth2-manage-client.html -rw-r--r-- 2.0 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{% extends "meta.html" %}
{% block title %}
<title>"{{client.name}}" - OAuth 2.0 - {{cfg("sr.ht", "site-name")}} meta</title>
{% endblock %}
{% block content %}
<h3>OAuth 2.0 client management</h3>
<div class="row">
  <div class="col-md-8 event-list">
    <form
      class="event"
      method="POST"
      action="{{url_for("oauth2.reissue_client_secrets_POST", uuid=client.uuid)}}"
    >
      {{csrf_token()}}
      <h3>Revoke tokens & client secret</h3>
      <p>
        If OAuth 2.0 bearer tokens issued for your OAuth client, or your client
        secret, have been disclosed to a third-party, you must revoke all
        tokens and have replacements issued.
      </p>
      <div class="row">
        <div class="col-md-5">
          <button
            class="btn btn-danger btn-block"
            type="submit"
          >Revoke client tokens {{icon('caret-right')}}</button>
        </div>
      </div>
    </form>

    <form
      class="event"
      method="POST"
      action="{{url_for("oauth2.unregister_client_POST", uuid=client.uuid)}}"
    >
      {{csrf_token()}}
      <h3>Unregister this OAuth client</h3>
      <p>
        This will permanently unregister your OAuth 2.0 client,
        "{{client.name}}", revoke all tokens issued to it, and prohibit the
        issuance of new tokens.
      </p>
      <div class="row">
        <div class="col-md-5">
          <button
            class="btn btn-danger btn-block"
            type="submit"
          >Unregister "{{client.name}}" {{icon('caret-right')}}</button>
        </div>
      </div>
    </form>
  </div>
  <div class="col-md-4">
    <dl>
      <dt>Client ID</dt>
      <dd><code>{{client.uuid}}</code></dt>
      <dt>Name</dt>
      <dd>{{client.name}}</dt>
      <dt>Description</dt>
      <dd>{{client.description}}</dt>
      <dt>Informative URL</dt>
      <dd>
        <a href="{{client.url}}" rel="nofollow noopener">{{client.url}}</a>
      </dt>
      <dt>Redirect URL</dt>
      <dd><code>{{client.redirectUrl}}</code></dt>
    </dl>
  </div>
</div>
{% endblock %}