{# 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 %}
{{ _("Client") }} | {{ token.client.client_name }} |
{{ _("Subject") }} | {% if token.subject %} {{ token.subject.identifier }} {% else %} {{ token.client.client_name }} {% endif %} |
{{ _("Scope") }} |
|
{{ _("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") }} |