OAuth: Add app type (is_clientside)
This commit is contained in:
@@ -47,7 +47,9 @@
|
||||
<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>
|
||||
<p class="form-text text-muted">
|
||||
{{ _("Keep the secret safe") }}
|
||||
{% if not client.is_clientside %}
|
||||
{{ _("You must keep the secret safe. If you are unable, set the app type to 'client-side'.") }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -65,6 +67,7 @@
|
||||
{{ render_field(form.title) }}
|
||||
{{ render_field(form.description, hint=_("Shown to users when you request access to their account")) }}
|
||||
{{ render_field(form.redirect_url) }}
|
||||
{{ render_field(form.app_type, hint=_("Where will you store your client_secret?")) }}
|
||||
|
||||
{{ render_submit_field(form.submit) }}
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user