{# .. screenshot:: |canaille|/consent/trusted-applications :context: user :align: right :width: 275px The trusted applications list. The trusted applications list. Display a list of trusted clients for which it is implied that users don't need to explicitly give their consent. :param scope_details: Description of the OIDC scopes. :type scope_details: :class:`dict` :param ignored_scopes: The scopes to hide. :type ignored_scopes: :class:`list` :param trusted: The list of implicitly consented clients. :type trusted: :class:`list` [ :class:`~canaille.oidc.basemodels.Client` ] :param nb_consents: The number of consents. :type nb_consents: :class:`int` :param nb_trusted: The number of trusted clients. :type nb_trusted: :class:`int` #} {% extends theme('base.html') %} {%- block title -%} {%- trans %}My consents{% endtrans -%} {%- endblock -%} {% block submenu %} {% trans %}My consents{% endtrans %} {% if nb_consents %}
{{ nb_consents|numberformat }}
{% endif %}
{% trans %}Pre-authorized applications{% endtrans %} {% if nb_trusted %}
{{ nb_trusted|numberformat }}
{% endif %}
{% endblock %} {% block content %}

{{ _("Pre-authorized applications") }}
{% trans %}Those applications automatically have authorizations to access you data.{% endtrans %}

{% if trusted %}
{% for client in trusted %}
{% if client.logo_uri %} {% endif %} {% if client.client_uri %} {{ client.client_name }} {% else %}
{{ client.client_name }}
{% endif %}

{% trans %}Has access to:{% endtrans %}

{% for scope in client.scope %} {% if scope not in ignored_scopes %} {% if scope not in scope_details %}
{{ scope }}
{% else %}
{{ scope_details[scope][1] }}
{% endif %} {% endif %} {% endfor %}
{% if client.policy_uri %} {% endif %} {% if client.tos_uri %} {% endif %} {% trans %}Revoke access{% endtrans %}
{% endfor %}
{% else %}

{% trans %}There is nothing here{% endtrans %}

{% endif %}
{% endblock %}