Releases: MasterKale/SimpleWebAuthn
Releases · MasterKale/SimpleWebAuthn
v0.8.0 - The one with better challenges
Packages:
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
Changes:
- [server] The
challenge
parameter ofgenerateAttestationOptions()
andgenerateAssertionOptions()
is now optional.- When undefined the library will generate a random challenge. This value will be base64url-encoded in preparation for transit to the front end.
- When defined the value will be directly encoded to base64url in preparation for transit to the front end.
- [browser]
startAttestation()
andstartAssertion()
now convert the base64url-encodedoptions.challenge
to a buffer before passing it to the authenticator.
Breaking Changes
- [server]
verifyAttestationResponse()
andverifyAssertionResponse()
now require the base64url-encoded challenge to be passed in asexpectedChallenge
:
Before:
const challenge = 'someChallenge';
const opts = generateAttestationOptions({
...atteOpts,
challenge,
});
const verification = verifyAttestationResponse({
...atteResp,
// Raw original value
expectedChallenge: challenge,
});
After:
const challenge = 'someChallenge';
const opts = generateAttestationOptions({
...atteOpts,
// This is now optional
challenge,
});
const verification = verifyAttestationResponse({
...atteResp,
// Now expected to be the base64url-encoded `challenge` returned
// by `generateAttestationOptions()`
expectedChallenge: opts.challenge,
});
v0.7.4
Packages:
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
Changes:
- [browser] Update dependencies
- [server] Update dependencies
v0.7.3
Packages:
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
Changes:
- [browser] Add support for UTF-8 values in server challenges
- [server] Minor performance improvement
v0.7.2
Packages:
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
Changes:
- [server] Added support for specifying a custom array of COSE algorithm identifiers when calling
generateAttestationOptions()
andverifyAttestationResponse()
- [browser] Updated README.md with new doc URLs
v0.7.1
Packages:
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
Changes:
- Fixed broken README and Homepage links in package listings on NPMJS.com
v0.7.0 - The one that passes FIDO conformance testing
Packages:
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
- @simplewebauthn/[email protected]
Changes:
- [server] Add support for TPM attestations
- [server] Add support for Android Key attestations
- [server] Add support for authenticator metadata statements and the FIDO Metadata Service (MDS)
Breaking Changes
- [server] The return type of
verifyAttestationResponse()
changed fromboolean
toPromise<boolean>
. This was necessary to support querying FIDO MDS for an authenticator metadata statement during attestation verification. - [server] The optional
requireUserVerification
parameter ofverifyAssertionResponse()
has been replaced with the new optionalfidoUserVerification
parameter. This enables greater control over user verification when verifying assertions.
v0.6.1
- [typescript-types] Update
verifyAttestationResponse()
options param description.
v0.6.0 - The one with better response verification
- [server] (BREAKING) Server's
verifyAttestationResponse()
andverifyAssertionResponse()
methods now take a single arguments object. - [server] These methods now include the ability to require user verification during attestation and assertion verification via the new
requireUserVerification
argument.
v0.5.1
- [typescript-types] Re-export
AuthenticatorAttestationResponseJSON
andAuthenticatorAssertionResponseJSON
v0.5.0 - The one where browser returns more info
- [browser] (BREAKING) Refactor
startAttestation()
andstartAssertion()
to return more of the output from thenavigator.credentials
calls - [browser] Replace
base64-js
dependency with internal functionality - [browser, server] Standardize on use of Base64URL encoding when converting to and from JSON
- [server] (BREAKING) Remove references to "base64" from
generateAttestationOptions()
andgenerateAssertionOptions()
by renaming theexcludedBase64CredentialIDs
andallowedBase64CredentialIDs
toexcludedCredentialIDs
andallowedCredentialIDs
respectively - [typescript-types] (BREAKING) Migrate some non-shared typings into server