-
Notifications
You must be signed in to change notification settings - Fork 47
fix(javascript-sdk): prioritize displayName for WebAuthn name attribute #527
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@forgerock/javascript-sdk': patch | ||
| --- | ||
|
|
||
| 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. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,8 @@ | |
| * | ||
| * autoscript.ts | ||
| * | ||
| * Copyright (c) 2020 ForgeRock. All rights reserved. | ||
| * Copyright (c) 2024 Ping Identity. All rights reserved. | ||
| * | ||
| * This software may be modified and distributed under the terms | ||
| * of the MIT license. See the LICENSE file for details. | ||
| */ | ||
|
|
@@ -61,8 +62,8 @@ function autoscript() { | |
| rxDelay(delay), | ||
| mergeMap((step) => { | ||
| console.log('Choose Passwordless login'); | ||
| const cb = step.getCallbackOfType('ChoiceCallback'); | ||
| cb.setChoiceIndex(0); | ||
| const cb = step.getCallbackOfType('ConfirmationCallback'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. has the test journey change and send a confirmation callback?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| cb.setOptionIndex(0); | ||
| return forgerock.FRAuth.next(step); | ||
| }), | ||
| rxDelay(delay), | ||
|
|
@@ -128,7 +129,7 @@ function autoscript() { | |
| // Needed for testing WebAuthn on Safari due to user event needed | ||
| console.log('Click the continue button!'); | ||
| const continueBtn = document.querySelector('.continue-btn'); | ||
| return rxjs.fromEvent(continueBtn, 'click'); | ||
| return fromEvent(continueBtn, 'click'); | ||
| }), | ||
| mergeMap(() => { | ||
| console.log('Log back in with WebAuthn'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.