-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PM-4882] Passkeys: funnel rp name or id to the cipher name on save #7969
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7969 +/- ##
===========================================
- Coverage 59.32% 24.91% -34.41%
===========================================
Files 1057 2239 +1182
Lines 27253 65598 +38345
Branches 5453 12378 +6925
===========================================
+ Hits 16167 16347 +180
- Misses 9756 47918 +38162
- Partials 1330 1333 +3 ☔ View full report in Codecov by Sentry. |
New Issues
Fixed Issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @merissaacosta
ff9a2a7
@@ -296,7 +296,7 @@ export class Fido2Component implements OnInit, OnDestroy { | |||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | |||
this.router.navigate(["/add-cipher"], { | |||
queryParams: { | |||
name: Utils.getHostname(this.url), | |||
name: data.credentialName || data.rpId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update: had to funnel in the credentialName
and rpId
here as well for when creating a new cipher (see last screenshot)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was gonna suggest using ??
instead, but realized that ||
is actually better because it also covers an empty string ""
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -296,7 +296,7 @@ export class Fido2Component implements OnInit, OnDestroy { | |||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | |||
this.router.navigate(["/add-cipher"], { | |||
queryParams: { | |||
name: Utils.getHostname(this.url), | |||
name: data.credentialName || data.rpId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was gonna suggest using ??
instead, but realized that ||
is actually better because it also covers an empty string ""
👍
Type of change
Objective
When creating a passkey and a new vault item, we want to set
name
to berp
's name value (rp.name
). If therp
does not provide a name then we save rp.id which is the urlCode changes
Screenshots
(see the "target" name in the extension)
Before you submit