{% extends "oauth2_provider/base.html" %} {% load i18n %} {% comment %} Package default consent page. Layout-agnostic (extends DOT's bundled base); consumers re-theme by overriding `mcp_sql/authorize.html` in their own template dir. Shows `resource_name` (the configured MCP server display name, injected by `MCPAuthorizationView.render_to_response`) instead of DOT's opaque per-client `application.name`. {% endcomment %} {% block content %}
{% if not error %}

{% trans "Authorize" %} {{ resource_name|default:application.name }}?

{% csrf_token %} {% for field in form %} {% if field.is_hidden %}{{ field }}{% endif %} {% endfor %}

{% trans "Application requires the following permissions" %}

{{ form.errors }} {{ form.non_field_errors }}
{% else %}

{% trans "Error" %}: {{ error.error }}

{{ error.description }}

{% endif %}
{% endblock content %}