# Restricting webauthn enrolment with LoA

**URL:** <https://forum.keycloak.org/t/restricting-webauthn-enrolment-with-loa/27628>\
**Category:** Getting advice\
**Tags:** account-console, authentication\
**Created:** [August 28, 2024, 11:36am UTC](https://forum.keycloak.org/t/restricting-webauthn-enrolment-with-loa/27628 "2024-08-28T11:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackhelicopters](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/blackhelicopters/32/11149_2.png) [@blackhelicopters](https://forum.keycloak.org/u/blackhelicopters)\
**Post date:** [August 28, 2024, 11:36am UTC](https://forum.keycloak.org/t/restricting-webauthn-enrolment-with-loa/27628/1 "2024-08-28T11:36:11Z")

</div>

The authoritative credential my users have is a smart card. I have an X509 flow set up to allow them to authenticate successfully.

I would like to enable my users to be able to enrol webauthn factors for increased convenience, but **not** without proof of possession of their smart card; they should not be able to use a webauthn factor to enrol more webauthn factors, but they should be allowed to enrol webauthn factors if they have authenticated via X509.

If you’re familiar with the concept of [PIV derived credentials](https://www.idmanagement.gov/playbooks/altauthn/) in the U.S. federal government space, I’m trying to achieve effectively the same thing.

The easiest way to achieve this seems to be by allowing access to `account-console` only for users with an ACR/LoA that reflects they authenticated via X509, but that doesn’t seem possible at the moment. Are there any other ways to achieve what I’m attempting here?

(I originally hijacked [another thread](https://forum.keycloak.org/t/enforce-default-acr-values/22732) with this issue, but it probably deserves its own discussion.)

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [August 28, 2024, 12:08pm UTC](https://forum.keycloak.org/t/restricting-webauthn-enrolment-with-loa/27628/2 "2024-08-28T12:08:17Z")

</div>

One way to do this could be to ask the user (as an optional step) if they want to enroll a WebAuthn factor, such as passkeys, during the login process, but only after a successful X509 authentication step.

I implemented this a similar approach here [1]. In my case, it involved progressive passkey enrollment during the sign-in process.

[1] [GitHub - embesozzi/keycloak-workshop-stepup-mfa-biometrics: Keycloak Workshop for Step Up with MFA Biometrics Authentication (Passkeys) and Passwordless experience with Passkeys](https://github.com/embesozzi/keycloak-workshop-stepup-mfa-biometrics)
