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,12 +31,17 @@
|
|||||||
<input class="form-control" type="text" id="client_id" name="client_id" value="{{ client.id }}" readonly>
|
<input class="form-control" type="text" id="client_id" name="client_id" value="{{ client.id }}" readonly>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<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>
|
<input class="form-control" type="text" id="client_secret" name="client_secret" value="{{ client.secret }}" readonly>
|
||||||
|
<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>
|
||||||
<p class="text-muted mb-0">
|
|
||||||
{{ _("Keep the secret safe") }}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user