Skip to content

Allow disabling PACE-to-BAC fallback - #277

Open
bahadirtmzr wants to merge 1 commit into
AndyQ:mainfrom
bahadirtmzr:fix/optional-pace-bac-fallback
Open

Allow disabling PACE-to-BAC fallback#277
bahadirtmzr wants to merge 1 commit into
AndyQ:mainfrom
bahadirtmzr:fix/optional-pace-bac-fallback

Conversation

@bahadirtmzr

Copy link
Copy Markdown

When PACE is attempted and fails, startReading() currently continues with BAC. That is convenient for documents that still offer BAC, but it also silently drops PACE on PACE-capable chips.

PassportReader.allowBACFallback defaults to true (same behavior as today). Set it to false to fail the session instead of falling back.

PACE failure currently falls through to BAC. Add allowBACFallback
(default true) so callers can require PACE when CardAccess is present.
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

Successfully merging this pull request may close these issues.

1 participant