-
Notifications
You must be signed in to change notification settings - Fork 0
WebAuthn Response Decoder #8
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
Draft
MasterKale
wants to merge
15
commits into
main
Choose a base branch
from
mm/feat-decode-response
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploying tools-passkeys-dev with
|
| Latest commit: |
14c1c97
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://38bad63e.tools-passkeys-dev.pages.dev |
| Branch Preview URL: | https://mm-feat-decode-response.tools-passkeys-dev.pages.dev |
MasterKale
commented
Jan 17, 2026
Comment on lines
+40
to
+64
| // DEBUG - Registration | ||
| setTimeout(() => { | ||
| flask.updateCode(`{ | ||
| "id": "0PjLmk8beadc6I1u5bMrZv6rg0JlTfkp", | ||
| "rawId": "0PjLmk8beadc6I1u5bMrZv6rg0JlTfkp", | ||
| "response": { | ||
| "attestationObject": "o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YVicdKbqkhPJnC90siSSsyDPQCYqlMGpUKA5fyklC2CEHvBdAAAAALraVWanqkAfvZZFYZpVEg0AGND4y5pPG3mnXOiNbuWzK2b-q4NCZU35KaUBAgMmIAEhWCBqFugix1y1gg-sUzr8JhsvI-b8Dc5lAUSqlLL4vKTcziJYIE-InBmgUVIpTbCN2D_h5UYzWhA7wJlP0a5CAYdSkb4Q", | ||
| "clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiMVVlLWZCZXkyR3p3QXQteU9LRWROUUloYXV1Vmw1QkRFcy1lLWZqUEdfTlBmU2ZIT0YwQUJ0LWQ1SG1UaWJhSV82SkZ1cHQ1bmp3dmNxWTVNSmpNdGciLCJvcmlnaW4iOiJodHRwczovL3dlYmF1dGhuLmlvIiwiY3Jvc3NPcmlnaW4iOmZhbHNlfQ", | ||
| "transports": [ | ||
| "internal", | ||
| "hybrid" | ||
| ], | ||
| "publicKeyAlgorithm": -7, | ||
| "publicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEahboIsdctYIPrFM6_CYbLyPm_A3OZQFEqpSy-Lyk3M5PiJwZoFFSKU2wjdg_4eVGM1oQO8CZT9GuQgGHUpG-EA", | ||
| "authenticatorData": "dKbqkhPJnC90siSSsyDPQCYqlMGpUKA5fyklC2CEHvBdAAAAALraVWanqkAfvZZFYZpVEg0AGND4y5pPG3mnXOiNbuWzK2b-q4NCZU35KaUBAgMmIAEhWCBqFugix1y1gg-sUzr8JhsvI-b8Dc5lAUSqlLL4vKTcziJYIE-InBmgUVIpTbCN2D_h5UYzWhA7wJlP0a5CAYdSkb4Q" | ||
| }, | ||
| "type": "public-key", | ||
| "clientExtensionResults": { | ||
| "credProps": { | ||
| "rk": true | ||
| } | ||
| }, | ||
| "authenticatorAttachment": "platform" | ||
| }`); | ||
| }, 10); |
Author
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.
Oops, I need to remove this.
MasterKale
commented
Jan 17, 2026
| } | ||
|
|
||
| /** | ||
| * |
Author
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.
Add a docstring here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a WebAuthn response decoder that is capable of parsing both registration and authentication responses into a more human-readable representation.
(I ported over https://debugger.simplewebauthn.dev to here and made it VanillaJS)
I vendored some deps to try and reduce this project's reliance on sites like unpkg.com. I used importmaps for the deps that would support it, but for the ones that don't have ESM builds available I want to try and find more modern libraries that will support this.
TODO
json-viewer(pick a theme from https://pfau-software.de/json-viewer/demo/ first)Screenshots
Initial State
Registration
Authentication