How can i generate a link to register a passkey for the logged user?

Hi everyone,
I’m new to all the passkey world, but i would like to give the possibility to register a passkey from the settings of my app by redirecting to Keycloak passkey registration page.
is it possible? how can I achieve it?
I could register the passkey only by setting the required action “Webauthn register passwordless” on the user, basically same page but by a link instead of required action

Thanks in advance!

Finally I found a way to make it works, if someone is interested I leave here the solution
https://keycloak:8443/realms/{realm}/protocol/openid-connect/auth
?response_type=code
&client_id={client_name}
&scope=openid
&redirect_uri=http://localhost:4200/
&kc_action=webauthn-register-passwordless

I couldn’t get to avoid the user login again, but I’m ok with it.

2 Likes