{# Consent request template. This templates is displayed to users accessing a new application that requests to access to personal information. It lists the personal information requested by the application, and offers the user to accept or decline. :param user: The user whose consent is asked. :type user: :class:`~canaille.core.models.User` :param grant: The OIDC grant. :type grant: An Authlib ``Grant`` #} {% extends theme('base.html') %} {% import 'macro/form.html' as fui %} {% block content %}
{% if client.logo_uri %} {{ client.client_name }} {% endif %}

{% trans name=client.client_name %}The application {{ name }} is requesting access to:{% endtrans %}

{% for scope in grant.request.scope.split(" ") %} {% if scope not in ignored_scopes %}
{% if scope in scope_details %}
{{ scope_details[scope][1] }}
{% else %}
{{ scope }}
{% endif %}
{% endif %} {% endfor %}
{{ gettext('You are logged in as %(name)s', name=user.formatted_name) }}
{% call fui.render_form(form) %}
{% endcall %}
{% endblock %}