{% extends 'oauth/apps_base.html' %} {% from 'forms/_form.html' import form_header, form_rows, form_footer %} {% from 'message_box.html' import message_box %} {% set num_users = application.user_links.count() %} {% block subtitle %} {{ application.name }} {% endblock %} {% block content %}
{%- trans %}Details{% endtrans -%}
{% if not application.system_app_type %}
{% endif %}
{% if application.system_app_type %} {% call message_box('highlight') -%} {%- trans -%} This is a system application. It cannot be deleted and certain attributes cannot be changed. {%- endtrans -%} {%- endcall %} {% endif %}
{# Do not translate
since they are the official terms in OAuth2 RFC #}
Client ID
{#--#}
{{ clipboard_text(application.client_id) }}
Client Secret
{#--#}
{{ clipboard_text(application.client_secret) }}
Authorize URL
{#--#}
{{ clipboard_text(url_for('.oauth_authorize', _external=true)) }}
Access token URL
{#--#}
{{ clipboard_text(url_for('.oauth_token', _external=true)) }}
OAuth metadata
{#--#}
{{ clipboard_text(url_for('.oauth_metadata', _external=true), as_link=true) }}

{{ form_header(form) }} {{ form_rows(form, disable=disabled_fields) }} {% call form_footer(form) %} {% trans %}Back{% endtrans %} {% endcall %}
{% endblock %} {% macro clipboard_text(url, as_link=false) %} {% if as_link %} {{ url }} {% else %} {{ url }} {% endif %} {% endmacro %}