Repository navigation
SDK-2751: Add to Python SDK enforce_handoff - #470
Merged
mehmet-yoti merged 1 commit intoNov 18, 2026
Merged
mehmet-yoti merged 1 commit into
mehmet-yoti merged 1 commit into
Conversation
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is additive, follows existing serialization patterns (remove_null_values), and includes targeted unit tests validating expected behavior.
Pull request overview
Adds support for the new sdk_config.enforce_handoff field in Doc Scan “Create Session”, aligning the Python SDK’s session creation payload and object model with the IDV API capabilities.
Changes:
- Extended
SdkConfig/SdkConfigBuilderto accept, expose, and serializeenforce_handoff. - Added unit tests covering default behavior and JSON serialization/omission semantics for
enforce_handoff.
File summaries
| File | Description |
|---|---|
| yoti_python_sdk/doc_scan/session/create/sdk_config.py | Adds enforce_handoff attribute, builder method, accessor, and JSON serialization (with null removal). |
| yoti_python_sdk/tests/doc_scan/session/create/test_sdk_config.py | Adds test coverage for enforce_handoff build behavior and JSON presence/absence. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
nikhilPank
self-requested a review
September 7, 2026 17:02
Merged
mehmet-yoti
added a commit
that referenced
this pull request
Nov 18, 2026
mehmet-yoti
added a commit
that referenced
this pull request
Nov 25, 2026
* SDK-2488: Python - Support dark mode in IDV SDK - python (#466) * Add dark_mode and primary_colour_dark_mode to SdkConfig (SDK-2488) Extends SdkConfig and SdkConfigBuilder with two new optional fields: - dark_mode (with_dark_mode, with_dark_mode_on/off/auto convenience methods) - primary_colour_dark_mode (with_primary_colour_dark_mode) Both fields are omitted from the JSON payload when not set (None). * feat(SDK-2488): Python - Support dark mode in IDV SDK [python] * SDK-2751: Add to Python SDK IDV Create Session (#470) * SDK-2530-python-create-helper-methods-for-the-idv-sdk (#468) * SDK-2773-python-support-central-auth-tokens (#467) * SDK-2773-python-support-central-auth-tokens * fix(SDK-2773): add jti claim to auth JWT and address review comments - Add jti (UUID v4) claim to the client assertion JWT, with an optional with_jwt_id_supplier() builder override (parity with PHP/Java) - Add a configurable timeout to the auth token request (default 30s) - Don't append a trailing '?' to URLs when there are no query params - Abstract AuthStrategy methods raise NotImplementedError - Fix 'compatibility' typo and update DocScanClient docstring * Merge pull request #471 from getyoti/websdk-auto/SDK-2869-python-support-fetching-session-pdf-in-idv SDK-2869: Python - Support fetching session PDF in IDV - python * Sdk 2802 python remove the api for aml check in connect (#469) * SDK-2802-python-remove-the-api-for-aml-check-in-connect * ci: pin runners to ubuntu-24.04 so Python 3.9 is still available ubuntu-latest moved to Ubuntu 26.04, which has no Python 3.9 build in actions/python-versions. The SDK still supports 3.9 (python_requires>=3.9). * feat(SDK-2827): Python - Support company_profile for IDV [python] (#472) * Bump version to 2.15.0
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
Adds a new
enforce_handoffconfiguration property tosdk_configfor IDV Create Session, mirroring the existingallow_handoffproperty. See DOCS-3523 for details.enforce_handoffcannot be enabled whenallow_handoffisfalse. This is not validated client-side — the SDK relies on the IDV API's existing validation and simply surfaces whatever error the API returns (via the existingDocScanException, which already parsescode/message/errorsfrom the API response).