OAuth: Add app type (is_clientside)

This commit is contained in:
rubenwardy
2023-11-07 23:06:22 +00:00
parent f74931633c
commit 9b0f84bac5
5 changed files with 52 additions and 2 deletions

View File

@@ -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>