Skip to content

Conversation

@cerebrl
Copy link
Contributor

@cerebrl cerebrl commented Dec 17, 2024

JIRA Ticket

SDKS-3473

Description

In order to display a more user-friendly name when saving a WebAuthn/Passkey device to an account, we prioritized displayName over userName for assignment to the name property of the WebAuthn options object. This avoids the display of UUIDs for saved credentials.

@changeset-bot
Copy link

changeset-bot bot commented Dec 17, 2024

🦋 Changeset detected

Latest commit: 5119dc0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@forgerock/javascript-sdk Patch
@forgerock/davinci-client Patch
@forgerock/ping-protect Patch
@forgerock/token-vault Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cerebrl cerebrl force-pushed the fix_sdk-webauthn-display-name branch from acb3012 to 03fca92 Compare December 17, 2024 23:05
@nx-cloud
Copy link

nx-cloud bot commented Dec 17, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 5119dc0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 57.25%. Comparing base (8456a8f) to head (5119dc0).
Report is 10 commits behind head on develop.

Files with missing lines Patch % Lines
packages/javascript-sdk/src/fr-webauthn/index.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #527   +/-   ##
========================================
  Coverage    57.24%   57.25%           
========================================
  Files          123      123           
  Lines        26966    26967    +1     
  Branches      1718     1717    -1     
========================================
+ Hits         15437    15439    +2     
+ Misses       11529    11528    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update copyright

Copy link

@rodrigoareis rodrigoareis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good to me. Just missing copyright updates

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM please update copyright.

console.log('Choose Passwordless login');
const cb = step.getCallbackOfType('ChoiceCallback');
cb.setChoiceIndex(0);
const cb = step.getCallbackOfType('ConfirmationCallback');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has the test journey change and send a confirmation callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test journey was removed, so I duplicated a journey that Stoyan uses, and it had a Confirmation Callback instead. This is a manual test, and not automation, so changes here don't affect CI.

- this uses `displayName || userName` for assignment to the `name`
  attribute of the WebAuthn options object
- This allows for a more readable value for when WebAuthn device is
  saved
@cerebrl cerebrl force-pushed the fix_sdk-webauthn-display-name branch from 03fca92 to 5119dc0 Compare December 18, 2024 19:27
Copy link

@rodrigoareis rodrigoareis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@cerebrl cerebrl merged commit d1340c6 into develop Dec 19, 2024
5 checks passed
@cerebrl cerebrl deleted the fix_sdk-webauthn-display-name branch December 19, 2024 15:37
@github-actions github-actions bot mentioned this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

6 participants