-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Parsing the attestation data explicitly #560
Comments
Check out SimpleWebAuthn/packages/server/src/helpers/index.ts Lines 18 to 38 in b299b51
|
Hmmm, I didn't realize it was a separate export in the package.json. Maybe there is a better way to do this, but this seems a bit annoying: parseAuthenticatorData(
decodeAttestationObject(
new Uint8Array(base64url.toBuffer(attestation))
).get('authData')); And I will also add that depending on the usage, callers of the library might need to explicitly exclude lint issues with: "node/no-missing-require": ["error", {
"allowModules": ["@simplewebauthn/server"]
}] Link to issue with require statements in eslint I would have expected a single method that takes in the attestation in the same format as But I guess this is technically already supported, so we can close it. |
Thanks for the feedback @wparad. These helpers are used internally by the various option-generation and response-verification methods that represent the core methods of the @simplewebauthn/server package. I make them available via the |
We would like to easily parse the attestation data, but the library does not expose an explicitly method to do this. Right now that means we need to almost fake calling
verifyRegistrationResponse
again with the right inputs whenever we want this. It would be really great to have the method to parse the attestation data available on the exposed interface.The text was updated successfully, but these errors were encountered: