{% import "_macros.html" as macros %} Device Authorization - NanoIDP

NanoIDP

Device Authorization
{% if decision == "authorized" %}
Device authorized

The device has been authorized. You can close this window and return to your device.

{% elif decision == "denied" %}
Device authorization denied

The device will not be signed in. You can close this window.

{% else %} {% if error %} {% endif %}

Enter the code displayed on your device and sign in to authorize it.


{% if (two_step_login or totp_step) and login_username %}
Signing in as {{ login_username }}
{% endif %} {% if persona_mode %} {{ macros.persona_picker(users, "Persona login - select a user to authorize this device.", js_submit=true) }}
{% elif totp_step %} {# Declarative TOTP second factor (#348): a further phase after a successful password check. The verified password is a pending second factor on the server (#373), bound to this user_code. #} {{ macros.totp_code_fields(pending_second_factor) }}
{% elif two_step_login and not login_username %}
{% elif two_step_login %}
{% else %}
{% endif %}
{% if (two_step_login or totp_step) and login_username %} {# A POST (#373): it discards a pending second factor. #}
{% if pending_second_factor %} {% endif %}
{% endif %}
This code will expire in 10 minutes
{% endif %}