{% extends 'layout.twig' %} {% block title %}Tokens — IRDB{% endblock %} {% block content %} {% import 'partials/sort.twig' as sort %}
| Actions | {% endif %}||||||
|---|---|---|---|---|---|---|
| {{ t.kind }} | {{ t.token_prefix }} | {%- if t.kind == 'admin' -%}role: {{ t.role|default('—') }} {%- elseif t.kind == 'reporter' -%}reporter #{{ t.reporter_id }} {%- elseif t.kind == 'consumer' -%}consumer #{{ t.consumer_id }} {%- else -%}—{%- endif -%} | {%- if t.user_label -%} {{ t.user_label }} {%- elseif t.user_id -%} user #{{ t.user_id }} {%- else -%} — {%- endif -%} | {% if t.last_used_at %}{% else %}never{% endif %} | {% if t.revoked_at %} revoked {% else %} active {% endif %} | {% if can_write %}{% if not t.revoked_at %} {% include 'partials/confirm_form.twig' with { action: '/app/tokens/' ~ t.id ~ '/delete', label: 'Revoke', description: 'Revoke this token immediately. Clients using it will start getting 401.', } only %} {% else %} {% include 'partials/confirm_form.twig' with { action: '/app/tokens/' ~ t.id ~ '/purge', label: 'Remove', description: 'Permanently delete this revoked token row. The audit log entry referring to its prefix will remain.', } only %} {% endif %} | {% endif %}
| No tokens. | ||||||
This is the only time you'll see the raw token. Refreshing this page or closing the dialog discards it permanently. If you lose it, revoke it and issue a new one.