{% extends 'base.html' %} {% from '_mcp-permissions-grid.html' import permissions_grid %} {# The OAuth consent screen, /oauth/authorize (blueprint/mcp/oauth), behind the instance's login. Shown as the app's own modal dialog (the same look as the token overlay and Revoke), opened over the normal page. Requires template context: error, or form (forms.MCPTokenForm), client (oauth/server.Client), redirect_host, localhost_only, mcp_url. A client's name is whatever it says about itself, so the dialog shows what is real next to it: a CIMD client's hostname (its client_id URL), and where the browser will be sent back to. Escape and clicking outside don't close it, that would leave an empty page: Cancel is the way out (it denies). #} {% block content %} {% set level_labels = {'none': _('None'), 'read': _('Read'), 'write': _('Write')} %} {% if error %} {% else %} {# url_for, not request.full_path: behind a proxy at a sub-path (/big-balls/) full_path leaves the prefix out, and the answer would go to the host root. The OAuth request rides along as its parameters, re-encoded by url_for #}
{% endif %}
{% endblock %}