Skip to content

Add origin and rpID in authentication and registration info#415

Merged
MasterKale merged 3 commits intoMasterKale:masterfrom
Mikescops:feature/add-origin-authentication-registration-info
Jul 27, 2023
Merged

Add origin and rpID in authentication and registration info#415
MasterKale merged 3 commits intoMasterKale:masterfrom
Mikescops:feature/add-origin-authentication-registration-info

Conversation

@Mikescops
Copy link

For now I only added the origin to the response.
The rpID is hashed, I'm not sure it is super relevant, what do you think @MasterKale ?

Closes #414

@MasterKale
Copy link
Owner

The rpID is hashed, I'm not sure it is super relevant, what do you think @MasterKale ?

I'd change the matchExpectedRPID() helper like this...

Screenshot 2023-07-19 at 9 16 44 AM

Then in verifyRegistrationResponse() and verifyAuthenticationResponse() I'd update the calls to await matchExpectedRPID(...) to assign to a new variable rpID which could then be included in registrationInfo and authenticationInfo respectively.

@Mikescops
Copy link
Author

@MasterKale thanks for the tip, good to go now 👍

@Mikescops Mikescops force-pushed the feature/add-origin-authentication-registration-info branch from 6e0421f to 57f58b8 Compare July 20, 2023 14:43
@Mikescops Mikescops changed the title Add origin in authentication and registration info Add origin and rpID in authentication and registration info Jul 20, 2023
Copy link
Owner

@MasterKale MasterKale left a comment

Choose a reason for hiding this comment

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

Thanks for handling all my comments @Mikescops! Just a couple more around refining tests and then I think this is good to go 🚀

@Mikescops
Copy link
Author

I think it's mergeable now 👍 cc @MasterKale

@MasterKale MasterKale added this to the v7.4.0 milestone Jul 27, 2023
Copy link
Owner

@MasterKale MasterKale left a comment

Choose a reason for hiding this comment

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

Thanks for the nudge @Mikescops, I'll go ahead and merge this ✌️

@MasterKale MasterKale merged commit f30a195 into MasterKale:master Jul 27, 2023
@Mikescops Mikescops deleted the feature/add-origin-authentication-registration-info branch July 27, 2023 16:07
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.

Add rpID and origin used in the authenticationInfo and registrationInfo

2 participants