Skip to content

docs: Guidance for higher-level SDKs to consume MSAL mTLS PoP#933

Open
gladjohn wants to merge 2 commits into
devfrom
gladjohn/sdk-integration-guidance
Open

docs: Guidance for higher-level SDKs to consume MSAL mTLS PoP#933
gladjohn wants to merge 2 commits into
devfrom
gladjohn/sdk-integration-guidance

Conversation

@gladjohn

@gladjohn gladjohn commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a single documentation file explaining how higher-level SDKs (e.g., azure-identity, azure-sdk-for-python) can integrate with the MSI v2 mTLS Proof-of-Possession API.

This PR contains only documentation — no code changes.

Contents

  • Public API surface and return value contract
  • WindowsCertificate object properties and methods (accurate to implementation)
  • Step-by-step integration pattern (credential → transport)
  • SchannelSession usage (certificate in constructor, not per-request)
  • No-fallback behavior (matches MSAL .NET MtlsPopTokenNotSupportedinImdsV1)
  • End-user experience goal (zero mTLS awareness)
  • .NET comparison table
  • Minimum integration example
  • Future OpenSSL 3 CNG Provider path

Related

Explains how azure-identity and other SDKs can integrate with the
MSI v2 mTLS Proof-of-Possession API.

Covers:
- Public API surface and return value contract
- WindowsCertificate object (accurate property names)
- Step-by-step integration pattern (credential -> transport)
- SchannelSession usage (cert in constructor, not per-request)
- No-fallback behavior matching MSAL .NET
- End-user DX goal (zero mTLS awareness)
- .NET comparison table
- Minimum integration example
- Future OpenSSL 3 CNG Provider path

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gladjohn gladjohn requested a review from a team as a code owner June 21, 2026 13:49
Copilot AI review requested due to automatic review settings June 21, 2026 13:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new documentation page intended to guide higher-level Azure SDKs in consuming MSAL Python’s Managed Identity v2 mTLS Proof-of-Possession (PoP) integration pattern (credential → transport) and related return-value/typing contracts.

Changes:

  • Introduces a new guidance document describing an mTLS PoP consumption model for higher-level SDKs.
  • Provides sample code for credential integration, auth header construction, and SChannel-based transport usage.
  • Documents intended API contracts (parameters, return keys, and key object types) for the integration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md Outdated
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md Outdated
Comment thread docs/Guidance-for-Higher-Level-SDKs-to-Consume-MSAL.md
- Add prerequisite note: APIs come from PR #931, not yet on dev
- Note this is standalone docs (not Sphinx-rendered)
- Fix rstrip('/.default') -> removesuffix('/.default')
- Fix AccessToken usage: store token_type on credential (not AccessToken)
- Fix auth policy: read token_type from credential, not token object

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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