~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/oauth-register.html -rw-r--r-- 1.3 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
{% extends "meta.html" %}
{% block title %}
<title>Register OAuth client - {{cfg("sr.ht", "site-name")}} meta</title>
{% endblock %}
{% block content %}
<div class="row">
  <section class="col-md-6">
    <h3>Register OAuth client</h3>
    <p>
      Be sure to review the
      <a
        href="https://man.sr.ht/meta.sr.ht/api.md"
        target="_blank"
      >API docs</a>
      to understand how this works.
    </p>
    <form method="POST" action="/oauth/register">
      {{csrf_token()}}
      <div class="form-group">
        <label for="client-name">Client Name <span class="text-danger">*</span></label>
        <input
          type="text"
          name="client-name"
          id="client-name"
          class="form-control {{valid.cls("client-name")}}"
          value="{{ client_name or "" }}" />
        {{valid.summary("client-name")}}
      </div>
      <div class="form-group">
        <label for="redirect-uri">Base Redirect URI <span class="text-danger">*</span></label>
        <input
          type="text"
          name="redirect-uri"
          id="redirect-uri"
          class="form-control {{valid.cls("redirect-uri")}}"
          value="{{ redirect_uri or "" }}" />
        {{valid.summary("redirect-uri")}}
      </div>
      <button type="submit" class="btn btn-default">Register</button>
    </form>
  </section>
</div>
{% endblock %}