mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
OAuth2: Add example authorize URL to edit form
This commit is contained in:
parent
76f9f58175
commit
e0553d0a50
@ -31,13 +31,18 @@
|
||||
<input class="form-control" type="text" id="client_id" name="client_id" value="{{ client.id }}" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="client_secret-label" for="client_id">client_secret</label>
|
||||
<label class="form-label" for="client_secret">client_secret</label>
|
||||
<input class="form-control" type="text" id="client_secret" name="client_secret" value="{{ client.secret }}" readonly>
|
||||
</div>
|
||||
<p class="text-muted mb-0">
|
||||
<p class="form-text text-muted">
|
||||
{{ _("Keep the secret safe") }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="authorize_url">{{ _("Example Authorize URL") }}</label>
|
||||
<input class="form-control" type="text" id="authorize_url" name="authorize_url" readonly
|
||||
value="{{ abs_url_for("oauth.oauth_start", response_type="code", client_id=client.id, redirect_uri=client.redirect_url) }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user