Repository navigation
Releases
Releases · robertz/bx-passkeys
v0.3.1
v0.3.0
- Browser answers are now verified by webauthn4j 0.32 (shipped in
libs/with
Jackson 3) instead of the module's own CBOR, COSE and signature code, which is
gone. Attestation statements of every format are checked for consistency. - Breaking: registration needs
attestationObject. Every browser sends it,
andclient/passkeys.jsalways did; answers with onlyauthenticatorDataand
the SPKIpublicKeyare refused. register()andverify()reportbackupEligibleandbackedUp.- Answers from a cross-origin frame are refused at registration too, and
an answer that says it's backed up but not backup eligible is refused. userVerification,residentKeyandoriginssettings are validated when the
RelyingParty is built.- The specs run in a BoxLang home of their own (
bash scripts/test.sh), so an
installed copy of the module can't stand in for the checkout. - The credential table and the
CredentialStoreinterface are unchanged;
passkeys registered with 0.2 keep working.
v0.2.0
- Breaking: with
originsempty, onlyhttps://<rpId>is allowed now, not
its subdomains. Set the newallowSubdomains: true(or listorigins) to
allow them. - Breaking:
CredentialStore.updateUsage()returns a boolean and must save
only while the counter moves forward (or stays 0), in one step. Custom stores
need updating. - A cloned key that sent counter 0 got past the clone check and reset the
stored counter to 0. Any counter that doesn't move forward is now refused. - Two sign-ins racing with the same counter can't both succeed:
TableCredentialStoreupdates withsign_count < ?, and the memory store
checks under its lock. - Taking a challenge is locked per session, so one assertion can't be used by
two parallel requests. - Registration and sign-in keep separate challenges, so starting a sign-in (in
another tab, say) no longer cancels a registration in progress. - Registration requires the COSE key in
authenticatorData; a browser SPKI key
is checked against it rather than trusted on its own. - Credential ids over 1023 bytes are refused, ids are stored in canonical
base64url, and transports are capped at 10 distinct entries. maxPerUseris checked at registration too.- Sign-in refuses passkeys whose algorithm was taken out of
algorithms. - SQL scripts: binary collations on
credential_idanduser_id(MSSQL,
MySQL);nameis bound asnvarcharso non-ASCII names survive on MSSQL. MemoryCredentialStorematches user ids exactly and reads under its lock.- Module defaults live only in
RelyingParty; oneSecureRandomand Base64
coder are shared.
v0.1.0
- First release, extracted from DismalThreads.
- WebAuthn registration and sign-in with attestation
"none", using only
JDK crypto (java.security). - ES256 (P-256), Ed25519 and RS256 keys, read from the browser's SPKI
getPublicKey()or the COSE key inattestationObject(built-in CBOR
decoder). - Single-use, expiring challenges kept in a session struct you pass in.
- Pluggable credential stores:
TableCredentialStoreand
MemoryCredentialStoreship with the module. passkeyRelyingParty()BIF and a browser client helper.