{% extends "base.html" %} {% block title %}vezir — enroll device{% endblock %} {% block content %}

Enroll a device

Use this page to enroll a new client (such as the Android app) by issuing a token on the server and showing a QR code that encodes { "v": 1, "url": ..., "token": ... }.

Heads up: the plaintext token is rendered on this page so it can be scanned. Scan it now from the device, then close this tab. Tokens are not recoverable once lost; if a device's token is compromised, revoke it with vezir token revoke --github <handle> and issue a new one.
{% if error %}
{{ error }}
{% endif %}

Step 1 — issue a token (on the server)

vezir token issue --github <handle>

Or use vezir token enroll --github <handle> --server <url> to issue a token and print this page's URL pre-filled.

Step 2 — paste below

{% if qr_svg %}

Step 3 — scan with the device

{{ qr_svg | safe }}
Manual entry / payload

If the device cannot scan QR codes, paste this JSON into the app's "manual paste" field:

{{ payload }}
{% endif %} {% endblock %}