{% if step == 'enter_code' %}

Connect a device

Type the code that the CLI printed on your server.

{% if error %}

{{ error }}

{% endif %}
{% csrf_token %}
{% elif step == 'consent' %}

Authorize {{ client_name }}?

Signed in as {{ user.email }}. Confirm that this device asked to connect to {{ brand_name }}.

{% if error %}

{{ error }}

{% endif %}

Code on the device: {{ user_code }}

{% csrf_token %}

Choose what to allow

{% for scope in scopes %}
{% empty %}
No special permissions requested.
{% endfor %}
{% elif step == 'result' %} {% if success %}

Authorized

You can close this page. The CLI will pick up the access automatically within a few seconds.

{% else %}

Not authorized

{% if error %}{{ error }}{% else %}You denied the request. The CLI will stop polling shortly.{% endif %}

{% endif %} {% endif %}