Skip to content

Add enforce_handoff configuration option to IDV session SDK#501

Draft
Copilot wants to merge 2 commits into
feature/SDK-2745-Task-1-add-enforce-handoff-to-sdks-for-idv-create-sessionfrom
copilot/sub-pr-500
Draft

Add enforce_handoff configuration option to IDV session SDK#501
Copilot wants to merge 2 commits into
feature/SDK-2745-Task-1-add-enforce-handoff-to-sdks-for-idv-create-sessionfrom
copilot/sub-pr-500

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 4, 2025

Implements enforce_handoff configuration option for IDV Create Session to require mobile handoff completion.

Changes

  • SdkConfig: Added EnforceHandoff nullable boolean property with JSON serialization as enforce_handoff
  • SdkConfigBuilder: Added WithEnforceHandoff(bool) fluent method for builder pattern
  • Validation: Constructor throws ArgumentException if enforce_handoff is true when allow_handoff is false
  • Tests: Added unit tests covering validation logic and valid configuration scenarios

Usage

// Enforce mobile handoff (must also allow it)
var config = new SdkConfigBuilder()
    .WithAllowHandoff(true)
    .WithEnforceHandoff(true)  // Requires mobile completion
    .Build();

// This will throw ArgumentException
var invalid = new SdkConfigBuilder()
    .WithAllowHandoff(false)
    .WithEnforceHandoff(true)  // Invalid: can't enforce when not allowed
    .Build();

The validation ensures configuration consistency at SDK level before API submission. Default value is null for backward compatibility.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
Copilot AI changed the title [WIP] Add enforce handoff configuration for IDV session Add enforce_handoff configuration option to IDV session SDK Dec 4, 2025
Copilot AI requested a review from mehmet-yoti December 4, 2025 16:42
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.

2 participants