Get auth challenge

This commit is contained in:
2022-04-23 18:56:14 +02:00
parent f09a62f8df
commit 1d69ea536f
5 changed files with 129 additions and 7 deletions

View File

@ -0,0 +1,20 @@
{% extends "base_login_page.html" %}
{% block content %}
<div>
<p>Please insert now your security key <i>{{ factor.name }}</i>, and accept authentication request.</p>
</div>
<div style="margin-top: 10px;">
<a href="/2fa_auth?force_display=true&redirect={{ _p.redirect_uri.get_encoded() }}">Sign in using another factor</a><br/>
<a href="/logout">Sign out</a>
</div>
<script>
const OPAQUE_STATE = "{{ opaque_state }}";
const AUTH_CHALLENGE = JSON.parse(decodeURIComponent("{{ challenge_json }}"));
</script>
{% endblock content %}