Regarding rp.name in PublicKeyCredentialCreationOptions

101 views
Skip to first unread message

Zhao Bin

unread,
Mar 14, 2023, 12:52:29 AM3/14/23
to FIDO Dev (fido-dev)
Hi 

I would like to know how rp.name in PublicKeyCredentialCreationOptions is used? Is it displayed in browser during FIDO2 registration process? Or is it stored in authenticator as part of the resident key?

Thank you.

Best Regards
Zhao Bin

Shane Weeden

unread,
Mar 14, 2023, 2:29:07 AM3/14/23
to Zhao Bin, FIDO Dev (fido-dev)
Often both. For discoverable credentials it has to be store on the authenticator so that you can perform passwordless login and know who you are logging in as (since multiple discoverable credentials for the same RP might be stored on the same authenticator).


--
You received this message because you are subscribed to the Google Groups "FIDO Dev (fido-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fido-dev+u...@fidoalliance.org.
To view this discussion on the web visit https://groups.google.com/a/fidoalliance.org/d/msgid/fido-dev/b2a5aa30-7cc2-4ccf-9d49-fe27ebf9ef84n%40fidoalliance.org.

My1

unread,
Mar 14, 2023, 2:31:21 AM3/14/23
to Shane Weeden, Zhao Bin, FIDO Dev (fido-dev)
that would be user.name and user.displayName, not rp.name tho as far as I remember

Zhao Bin

unread,
Mar 14, 2023, 3:29:37 AM3/14/23
to FIDO Dev (fido-dev), My1, Zhao Bin, FIDO Dev (fido-dev), Shane Weeden
Hi My1

it is under rp. Please see this link https://developers.yubico.com/WebAuthn/WebAuthn_Developer_Guide/WebAuthn_Client_Registration.html

rp.id is used for domain verification. That's very clear.
What I want to know is the use of rp.name. I can't find it displayed in the browser pop up during FIDO registration or in the authenticator (such as running Yubikey's command ./ykman fido credentials list).

DUBOUCHER Thomas

unread,
Mar 14, 2023, 4:08:12 AM3/14/23
to Zhao Bin, FIDO Dev (fido-dev), My1, FIDO Dev (fido-dev), Shane Weeden

Hi,

 

rp.name is used to display the service name to which a discoverable credential is attached to, either through a built-in user interface, or through the credential management API in CTAP 2.1.

 

Best regards,

 

--

Thomas Duboucher

My1

unread,
Mar 14, 2023, 4:09:32 AM3/14/23
to DUBOUCHER Thomas, Zhao Bin, FIDO Dev (fido-dev), Shane Weeden
Shouldn't it use the domain instead?

Rp.name sounds like creating an awful lot of fun for malicious parties

DUBOUCHER Thomas

unread,
Mar 14, 2023, 8:58:43 AM3/14/23
to My1, Zhao Bin, FIDO Dev (fido-dev), Shane Weeden

Good remark (had to check for this one),

 

The rp.id is the only mandatory information, which is ~the web origin. The rp.name is an optional name that can be given for added information.

 

Think of it as the URL and the title of a web page. With exactly the same issues, which is why usually only the truncated rp.id is displayed.

 

Best regards,

 

--

Thomas Duboucher

 

John Bradley

unread,
Mar 14, 2023, 9:41:23 AM3/14/23
to DUBOUCHER Thomas, My1, Zhao Bin, FIDO Dev (fido-dev), Shane Weeden
I seem to recall that the RP. Name was intended to help credential management for multi tenement RP. Eg AAD where the RPID is the same for all the credentials but the name can hint at the tenement such as the enterprise vs a personal MSA login.  

WebAuthn should probably do a better job of communicating what these optional parameters are intended for now that we have more than one RP using them.  


That was why we added an explicit value the RP can set during make credential.  

Yes the RP is free to set silly values for name but that would probably be counter productive for them.  

I assume that most do not set RP.name when making credentials.  

Regards 
John B. 


Sent from my iPhone

On Mar 14, 2023, at 9:58 AM, 'DUBOUCHER Thomas' via FIDO Dev (fido-dev) <fido...@fidoalliance.org> wrote:



Tim Cappalli

unread,
Mar 14, 2023, 11:53:15 AM3/14/23
to John Bradley, DUBOUCHER Thomas, My1, Zhao Bin, FIDO Dev (fido-dev), Shane Weeden

If you have recommended text for passkeys.dev, please add it to this issue.


From: fido...@fidoalliance.org <fido...@fidoalliance.org> on behalf of John Bradley <ve7...@ve7jtb.com>
Sent: Tuesday, March 14, 2023 09:41
To: DUBOUCHER Thomas <thomas.d...@thalesgroup.com>
Reply all
Reply to author
Forward
0 new messages