mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-14 02:09:44 -04:00
if user has `webauthn_auth` as their auth type, then redirect them to an interstitial that prompts them to click on a button which right now just logs to the JS console, but in a future commit will open up the webauthn browser prompt content is unsurprisingly not final.
34 lines
924 B
HTML
34 lines
924 B
HTML
{% extends "withoutnav_template.html" %}
|
|
{% from "components/page-header.html" import page_header %}
|
|
{% from "components/button/macro.njk" import govukButton %}
|
|
|
|
{% set page_title = 'Security keys' %}
|
|
|
|
{% block per_page_title %}
|
|
{{ page_title }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
{{ page_header(
|
|
page_title,
|
|
back_link=url_for('.user_profile')
|
|
) }}
|
|
|
|
<div class="govuk-grid-row">
|
|
<div class="govuk-grid-column-five-sixths">
|
|
<p class="govuk-body">Security key</p>
|
|
<p class="govuk-body">When you are ready to authenticate, press the button below.</p>
|
|
|
|
{{ govukButton({
|
|
"element": "button",
|
|
"text": "Webauthn authenticate click me click me",
|
|
"classes": "govuk-button--secondary",
|
|
"attributes": {
|
|
"data-module": "authenticate-security-key",
|
|
"data-csrf-token": csrf_token(),
|
|
}
|
|
}) }}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|