Skip to content

Add CA bundle version and pinning status to user agent string#36

Merged
AaronAtDuo merged 2 commits into
mainfrom
ztcapin-487
Jul 8, 2026
Merged

Add CA bundle version and pinning status to user agent string#36
AaronAtDuo merged 2 commits into
mainfrom
ztcapin-487

Conversation

@mihir-pradhan

@mihir-pradhan mihir-pradhan commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added CA_BUNDLE_VERSION = '1.0' constant in duo_universal/client.py
  • Modified exchange_authorization_code_for_2fa_result to append ca_bundle/1.0 and ca_pinning: enabled|disabled to the user agent string based on the disable_ca_pinning runtime state

How Has This Been Tested?

  • test_user_agent_includes_ca_bundle_version — verifies ca_bundle/1.0 is present in the user agent
  • test_user_agent_ca_pinning_enabled — verifies ca_pinning: enabled when pinning is not disabled
  • test_user_agent_ca_pinning_disabled — verifies ca_pinning: disabled when disable_ca_pinning=True

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AaronAtDuo AaronAtDuo merged commit ba3f674 into main Jul 8, 2026
4 checks passed
@AaronAtDuo AaronAtDuo deleted the ztcapin-487 branch July 8, 2026 20:34
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.

3 participants