Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @simplewebauthn/server to v11 #986

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 13, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@simplewebauthn/server (source) 10.0.1 -> 11.0.0 age adoption passing confidence

Release Notes

MasterKale/SimpleWebAuthn (@​simplewebauthn/server)

v11.0.0

Compare Source

Say hello to support for automatic passkey registration, support for valid conditional UI <input>
elements stashed away in web components, and to the new WebAuthnCredential type that modernizes
some logic within.

There are some breaking changes in this release! Please see Breaking Changes below for refactor
guidance.

Packages
Changes
  • [browser] [server] A new useAutoRegister argument has been added to startRegistration() to
    support attempts to automatically register passkeys for users who just completed non-passkey auth.
    verifyRegistrationResponse() has gained a new requireUserPresence option that can be set to
    false when verifying responses from startRegistration({ useAutoRegister: true, ... })
    (#​623)
  • [browser] A new verifyBrowserAutofillInput argument has been added to
    startAuthentication() to disable throwing an error when a correctly configured <input> element
    cannot be found (but perhaps a valid one is present in a web component shadow's DOM)
    (#​621)
  • [server] [types] The AuthenticatorDevice type has been renamed to WebAuthnCredential and
    has had its properties renamed. The return value out of verifyRegistrationResponse() and
    corresponding inputs into verifyAuthenticationResponse() have been updated accordingly. See
    Breaking Changes below for refactor guidance
    (#​625)
  • [server] verifyRegistrationResponse() now verifies that the authenticator data AAGUID
    matches the leaf cert's id-fido-gen-ce-aaguid extension AAGUID when it is present
    (#​609)
  • [server] TPM attestation verification recognizes the corrected TPM manufacturer identifier for
    IBM (#​610)
  • [server] Types for the defunct authenticator extensions uvm and dpk have been removed
    (#​611)
Breaking Changes
[browser] Positional arguments in startRegistration() and startAuthentication() have been replaced by a single object

Property names in the object match the names of the previously-positional arguments. To update
existing implementations, wrap existing options in an object with corresponding properties:

Before:

startRegistration(options);
startAuthentication(options, true);

After:

startRegistration({ optionsJSON: options });
startAuthentication({ optionsJSON: options, useBrowserAutofill: true });
[server] [types] The AuthenticatorDevice type has been renamed to WebAuthnCredential

AuthenticatorDevice.credentialID and AuthenticatorDevice.credentialPublicKey have been shortened
to WebAuthnCredential.id and WebAuthnCredential.publicKey respectively.

verifyRegistrationResponse() has been updated accordingly to return a new credential value of
type WebAuthnCredential. Update code that stores credentialID, credentialPublicKey, and
counter out of verifyRegistrationResponse() to store credential.id, credential.publicKey,
and credential.counter instead:

Before:

const { registrationInfo } = await verifyRegistrationResponse({...});

storeInDatabase(
  registrationInfo.credentialID,
  registrationInfo.credentialPublicKey,
  registrationInfo.counter,
  body.response.transports,
);

After:

const { registrationInfo } = await verifyRegistrationResponse({...});

storeInDatabase(
  registrationInfo.credential.id,
  registrationInfo.credential.publicKey,
  registrationInfo.credential.counter,
  registrationInfo.credential.transports,
);

Update calls to verifyAuthenticationResponse() to match the new credential argument that
replaces the authenticator argument:

Before:

import { AuthenticatorDevice } from '@&#8203;simplewebauthn/types';

const authenticator: AuthenticatorDevice = {
  credentialID: ...,
  credentialPublicKey: ...,
  counter: 0,
  transports: [...],
};

const verification = await verifyAuthenticationResponse({
  // ...
  authenticator,
});

After:

import { WebAuthnCredential } from '@&#8203;simplewebauthn/types';

const credential: WebAuthnCredential = {
  id: ...,
  publicKey: ...,
  counter: 0,
  transports: [...],
};

const verification = await verifyAuthenticationResponse({
  // ...
  credential,
});

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from b3b582a to 6d28f9d Compare October 14, 2024 18:51
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 6d28f9d to 5b6a48d Compare October 14, 2024 21:48
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 5b6a48d to 4d28e90 Compare October 15, 2024 12:50
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 4d28e90 to eac2a20 Compare October 15, 2024 17:57
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from eac2a20 to d495192 Compare October 15, 2024 20:54
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from d495192 to 7e1cce9 Compare October 15, 2024 23:04
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 7e1cce9 to 575628e Compare October 16, 2024 00:22
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 575628e to c3b3c16 Compare October 16, 2024 20:29
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from c3b3c16 to 04741c0 Compare October 16, 2024 21:20
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 04741c0 to 31451e0 Compare October 17, 2024 02:27
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 31451e0 to 9a3de34 Compare October 17, 2024 05:17
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 9a3de34 to c4d26a3 Compare October 17, 2024 06:26
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from c4d26a3 to 2f895a9 Compare October 17, 2024 21:38
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 2f895a9 to f0dcadf Compare October 18, 2024 00:08
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from f0dcadf to 08e7ed2 Compare October 18, 2024 03:18
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from e2e426c to 5e0ed8f Compare October 18, 2024 21:47
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 5e0ed8f to 5b81c61 Compare October 19, 2024 00:58
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 5b81c61 to e12d890 Compare October 19, 2024 04:52
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from e12d890 to 6f45f8b Compare October 19, 2024 06:07
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 6f45f8b to 4dbdf31 Compare October 19, 2024 07:29
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 4dbdf31 to d691fcc Compare October 19, 2024 10:41
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from d691fcc to fa5fa98 Compare October 20, 2024 01:56
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from fa5fa98 to 9d2655e Compare October 20, 2024 03:24
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 9d2655e to ffb586f Compare October 20, 2024 22:03
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from ffb586f to a74eb37 Compare October 21, 2024 16:32
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from a74eb37 to 84f87c2 Compare October 22, 2024 03:18
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 84f87c2 to 8c3c933 Compare October 22, 2024 06:30
@renovate renovate bot force-pushed the renovate/simplewebauthn-server-11.x branch from 8c3c933 to 606f4db Compare October 22, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants