Closed santiagorodriguez96 closed 4 months ago
Awesome, thanks for your work on this! I would like to keep webauthn v2 support, at least until Rodauth 3.
I've merged this with the webauthn v2 compatibility changes, and then did a little refactoring: 99a986f92175efd623ad201084185446bc627835
Motivation/Background
Rodauth currently overrides internal WebAuthn methods in order to be able to allow for multiple origins. This feature is officially supported by
webauthn
gem starting in its versionv3
so we should be able to avoid overridingWebAuthn
internal methods.Details
This PR just changes to use the new
webauthn
instance based configuration to support for multiple origins. It feels to me that that should be all you need to do, but I might be missing something.It also bumps
webauthn
required version tov3
, but it shouldn't be hard to maintain compatibility withv2
if desired asv3
is backwards compatible.Furthermore, nothing changes that much from
v2
besides the required ruby version going from2.3
inwebauthn v2.0.0
to2.5
inwebauthn v3.0.0
.