question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename core server methods

See original GitHub issue

I’ve come a long way in my understanding of WebAuthn since initially launching SimpleWebAuthn. As an active participant in the WebAuthn working groups I also find myself in a position to influence how others think about WebAuthn, and in what terminology they use when speaking about use of its capabilities.

In an effort to unify on terminology that the working group strives to have others use, I’ve decided to rename methods and types in an effort to make it simpler to understand what’s used when.

APIs - @simplewebauthn/server

Registration

Methods involving the registration of authenticators for a particular user are currently under the “attestation” umbrella. As I’ve come to learn attestation is a property of certain kinds of registration responses (ones containing attestation statements, for example). As such, I aim to perform the following rename of these methods (and implicitly any related types):

  • generateAttestationOptions() -> generateRegistrationOptions()
  • verifyAttestationResponse() -> verifyRegistrationResponse()

Authentication

“Assertions” come out of authentication ceremonies. I think it’s simpler (heh) to map “authentication” as something a user does when they want to log in, versus trying to remember that “assertion” which sounds like “attestation” is for logging a user in. As such, I plan on performing the following renaming as well (along with any related types):

  • generateAssertionOptions() -> generateAuthenticationOptions()
  • verifyAssertionResponse() -> verifyAuthenticationResponse()

APIs - @simplewebauthn/browser

There are fewer methods exported out of browser so I’ll just list all the renames here:

  • startAttestation() -> startRegistration()
  • startAssertion() -> startAuthentication()

Types

Types exported from server and typescript-types will need to be renamed as well for consistency’s sake.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MasterKalecommented, Aug 28, 2021

This issue has been resolved in v4.0.0! A huge thank you to @JayHelton for your help in making this rename happen! 🙇

1reaction
JayHeltoncommented, Aug 20, 2021

Ill start tackling this! 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Rename Windows Server Core - Mastering VMware
No information is available for this page.
Read more >
Different Ways to Rename Windows Server 2019
Different Ways to Rename Windows Server 2019 ; 1. Right-click on the Start icon, and then click System. ; 2. In the settings...
Read more >
How to rename Windows Server 2016 - Dimitris Tonias
Rename Windows Server 2016 from the GUI ... Right-click the Start icon, and then click System. ... In the new window, click Change...
Read more >
Changing the Windows computer name in Server 2012 | Dell US
This article provides information on how to change the Windows computer name in Windows Server Core using Sconfig and Windows PowerShell.
Read more >
Q. How do I rename a computer and assign it to a domain in ...
A. Because Server Core doesn't have a Control Panel System applet or Microsoft Management Console (MMC) Server Manager, you have to use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found