Skip to content
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

Secure Payment Request Verify relies on patched simplewebauthn #41

Open
fabiancook opened this issue Jun 26, 2023 · 0 comments
Open

Secure Payment Request Verify relies on patched simplewebauthn #41

fabiancook opened this issue Jun 26, 2023 · 0 comments

Comments

@fabiancook
Copy link
Member

The verification process for secure payment request matches the standard authentication flow, it should be implemented within simplewebauthn, however this may need to wait till after secure payment request moves to candidate recommendation.

const {verified, authenticationInfo} = await verifyAuthenticationResponse({
response: payment.details,
expectedChallenge,
expectedOrigin: WEBAUTHN_RP_ORIGIN || origin,
expectedRPID: WEBAUTHN_RP_ID || hostname,
authenticator: {
credentialID: new Uint8Array(toArrayBuffer(found.credentialId, true)),
credentialPublicKey: new Uint8Array(toArrayBuffer(found.credentialPublicKey, true)),
transports: found.authenticatorTransports,
counter: found.credentialCounter ?? 0
}
});

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

No branches or pull requests

1 participant