Repository navigation
feat: allow passkeys in the 3DS challenge iframe - #287
Merged
Merged
Conversation
Browsers block WebAuthn in cross-origin iframes unless the embedder delegates the permission, so scheme passkeys (Visa/Mastercard payment passkeys run inside the 3DS challenge) silently fell back to OTP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the changes enabling passkeys in 3DS challenge iframes.
No open issues 🎉
What changed in this PR
This PR enables card-scheme passkeys in the SDK’s 3DS challenge iframe by delegating WebAuthn permissions, while leaving other iframe actions unchanged.
Changes:
- Adds payment and WebAuthn permissions specifically to 3DS challenge iframes.
- Adds tests for permission delegation, size overrides, and unaffected flows.
- Bumps the package version to 1.9.19.
| File | Description |
|---|---|
test/support/loadNamespace.ts |
Adds a minimal DOM shim for inspecting ActionHandler-created iframe attributes. |
test/processout/actionhandler.test.ts |
Tests 3DS permissions and confirms other flows remain unchanged. |
src/processout/actionhandler.ts |
Enables payment and passkey permissions for 3DS challenge iframes. |
package.json |
Updates the version to 1.9.19. |
Review effort: Balanced
liviu-nicoara-cko
approved these changes
Nov 3, 2026
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
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.
Summary
Card scheme passkeys (Visa Payment Passkey, Mastercard Payment Passkey) run inside the EMV 3DS challenge and use WebAuthn. Browsers block WebAuthn in a cross-origin iframe unless the parent delegates it, so in our 3DS challenge iframe the passkey prompt never appears and cardholders fall back to a regular challenge (for example an OTP).
Changes
ActionHandler: the 3DS challenge iframe (ThreeDSChallengeFlow) now setsallow="payment *; publickey-credentials-get *; publickey-credentials-create *".Impact
*because the frame redirects to issuer ACS origins that can't be listed in advance. A framed page can still only use passkeys for its own domain, and each use needs the cardholder to act on a browser prompt.Permissions-Policythat disables these features still wins.Additional Context
🤖 Generated with Claude Code