{# The token edition template. Displays the details of a token :class:`~canaille.oidc.basemodels.Token`. :param form: A token revokation form. :type form: :class:`~canaille.oidc.endpoints.forms.TokenRevokationForm`. #} {% extends theme('base.html') %} {% import 'macro/form.html' as fui %} {%- block title -%} {%- trans %}Token details{% endtrans -%} {%- endblock -%} {% block script %} {% endblock %} {% block submenu %} {% trans %}Emails{% endtrans %} {% trans %}Clients{% endtrans %} {% trans %}Add a client{% endtrans %} {% trans %}Tokens{% endtrans %} {% trans %}Codes{% endtrans %} {% endblock %} {% block content %}

{% trans %}Token details{% endtrans %}

{% call fui.render_form(form, class_="token-form info") %}
{{ _("Client") }} {{ token.client.client_name }}
{{ _("Subject") }} {% if token.subject %} {{ token.subject.identifier }} {% else %} {{ token.client.client_name }} {% endif %}
{{ _("Scope") }}
    {% for scope in token.scope %}
  • {{ scope }}
  • {% endfor %}
{{ _("Audience") }}
{{ _("Issue date") }} {{ token.issue_date|datetimeformat }}
{{ _("Expiration date") }} {{ token.expire_date|datetimeformat }} {% if token.is_expired() %}
{% trans %}This token has expired.{% endtrans %}
{% endif %}
{{ _("Revokation date") }} {% if token.revokation_date %} {{ token.revokation_date }} {% else %}

{% trans %}This token has not been revoked{% endtrans %}

{% endif %}
{{ _("Token type") }} {{ token.type }}
{{ _("Access token") }}
{{ _("Refresh token") }}
{% endcall %}
{% endblock %}