{% extends "meta.html" %} {% block title %} OAuth 2.0 - {{cfg("sr.ht", "site-name")}} meta {% endblock %} {% block content %}

Personal Access Tokens

{% if any(personal_tokens) %}

You have issued the following personal access tokens:

{% for token in personal_tokens %} {% endfor %}
Comment Issued Expires
{{ token.comment }} {{ token.issued | date }} {{ token.expires | date }} Revoke
{% else %}

You have not created any personal access tokens.

{% endif %} Generate new token {{icon("caret-right")}}

Authorized Clients

{% if any(oauth_grants) %}

You have granted the following third parties access to your account:

{% for grant in oauth_grants %} {% endfor %}
Service Operator Issued Expires
{# lol this hack is awful #} {{ grant.client.name }} {{icon('external-link-alt')}} {{grant.client.owner.canonicalName}} {{grant.issued | date}} {{grant.expires | date}} Revoke
{% else %}

You have not granted any third party clients access to your account.

{% endif %}

Registered Clients

{% if client_revoked %}
Your OAuth client has been unregistered. All bearer tokens issued to your client have been revoked.
{% endif %}

Please consult our OAuth 2.0 documentation for information about OAuth clients.

{% if any(oauth_clients) %}

You have registered the following OAuth clients:

{% for client in oauth_clients %} {% endfor %}
Name Client ID
{# lol this hack is awful #} {{ client.name }} {{icon('external-link-alt')}} {{ client.uuid }} Manage {{icon('caret-right')}}
{% else %}

You have not registered any OAuth clients yet.

{% endif %} Register new client {{icon("caret-right")}}
{% endblock %}