Generate & return webauthn registration challenge
This commit is contained in:
14
templates/settings/add_webauthn_page.html
Normal file
14
templates/settings/add_webauthn_page.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% extends "base_settings_page.html" %}
|
||||
{% block content %}
|
||||
<div style="max-width: 700px;">
|
||||
|
||||
<p>In order, to continue, please insert your security key & approve the registration request.</p>
|
||||
|
||||
<script>
|
||||
const OPAQUE_STATE = "{{ opaque_state }}";
|
||||
const REGISTRATION_CHALLENGE = JSON.parse(decodeURIComponent("{{ challenge_json }}"));
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user