~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/client-security.html -rw-r--r-- 634 bytes
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
{% extends "client-admin.html" %}
{% block content %}
<h3>Reset client secret</h3>
<p>If your client secret is compromised, regenerate it here.</p>
<form action="/oauth/reset-secret/{{ client.client_id }}" method="POST">
  {{csrf_token()}}
  <button class="btn btn-danger">
    Reset client secret {{icon("caret-right")}}
  </button>
</form>
<h3>Revoke all tokens</h3>
<p>You can revoke all issued OAuth tokens at once here.</p>
<a class="btn btn-danger" href="/oauth/revoke-tokens/{{client.client_id}}">
  Revoke {{ len(client.tokens) }} token{% if len(client.tokens) > 1 %}s{% endif %}
  {{icon("caret-right")}}
</a>
{% endblock %}