Skip to content

Add documentation for Managed Identity v2 Hackathon#885

Open
gladjohn wants to merge 3 commits intodevfrom
gladjohn-hack-2026
Open

Add documentation for Managed Identity v2 Hackathon#885
gladjohn wants to merge 3 commits intodevfrom
gladjohn-hack-2026

Conversation

@gladjohn
Copy link
Copy Markdown

@gladjohn gladjohn commented Mar 6, 2026

Document the results and outcomes of the Managed Identity v2 Multi-Language Implementation Hackathon, highlighting the achievements and deliverables.

Document the results and outcomes of the Managed Identity v2 Multi-Language Implementation Hackathon, highlighting the achievements and deliverables.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a comprehensive documentation file under spikes/prototype/ describing the results and deliverables of a Managed Identity v2 Multi-Language Implementation Hackathon. The document covers the creation of PowerShell and Python implementations of MSI v2 with mTLS Proof-of-Possession token support, with the Python package published on PyPI as msal-msiv2==1.35.0rc3.

Changes:

  • Adds a 458-line Markdown document (2026_MS_SecurityHackathon_MSIV2.md) documenting the hackathon objectives, deliverables, architecture diagrams, security properties, testing results, and learnings.
  • Documents both PowerShell (in the dotnet MSAL repo) and Python implementations, including API examples, pipeline integration details, and comparison tables.
  • Includes Mermaid diagrams for the MSI v2 flow and end-to-end sequence.

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

Copilot AI review requested due to automatic review settings March 6, 2026 14:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


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

Copilot AI review requested due to automatic review settings April 7, 2026 14:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


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

Comment on lines +57 to +58
**Location:** `prototype/MsiV2UsingPowerShell/`
Repository: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/tree/main/prototype/MsiV2UsingPowerShell
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

The "Location" value looks like a path within this repository, but the referenced PowerShell implementation actually lives in a different repo (linked on the next line). Consider rewording this to avoid implying the folder exists locally (e.g., say it's in the dotnet repo and/or provide a direct link to the folder).

Suggested change
**Location:** `prototype/MsiV2UsingPowerShell/`
Repository: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/tree/main/prototype/MsiV2UsingPowerShell
**Location:** In the dotnet repo at [`prototype/MsiV2UsingPowerShell/`](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/tree/main/prototype/MsiV2UsingPowerShell)
Repository: `AzureAD/microsoft-authentication-library-for-dotnet`

Copilot uses AI. Check for mistakes.
```powershell
.\get-token.ps1
.\get-token.ps1 -Scope "https://management.azure.com/.default"
.\get-token.ps1 -ResourceUrl "https://mtlstb.graph.microsoft.com/v1.0/applications?$top=5"
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

The example ResourceUrl uses mtlstb.graph.microsoft.com, which appears environment-specific and may not work for most readers. Consider either switching the example to a public endpoint (e.g., graph.microsoft.com) or adding a short note explaining what mtlstb is and when it should be used.

Suggested change
.\get-token.ps1 -ResourceUrl "https://mtlstb.graph.microsoft.com/v1.0/applications?$top=5"
.\get-token.ps1 -ResourceUrl "https://graph.microsoft.com/v1.0/applications?$top=5"

Copilot uses AI. Check for mistakes.
Comment on lines +141 to +145
Repo: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet

**Pipeline files**
- `build/template-run-mi-e2e-imdsv2-python.yaml` — E2E test template for Python MSI v2
- `build/template-build-and-run-all-tests.yaml` — Main pipeline orchestration updated
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

These pipeline file paths (build/...) do not exist in this repository, and the section could be read as instructions for where to find the YAML here. Consider linking directly to the files in the dotnet repo (or clarifying they are in that repo) to prevent confusion for readers of this document.

Suggested change
Repo: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet
**Pipeline files**
- `build/template-run-mi-e2e-imdsv2-python.yaml` — E2E test template for Python MSI v2
- `build/template-build-and-run-all-tests.yaml` — Main pipeline orchestration updated
External repo: [AzureAD/microsoft-authentication-library-for-dotnet](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet)
**Pipeline files in the dotnet repo**
- [`build/template-run-mi-e2e-imdsv2-python.yaml`](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/main/build/template-run-mi-e2e-imdsv2-python.yaml) — E2E test template for Python MSI v2
- [`build/template-build-and-run-all-tests.yaml`](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/main/build/template-build-and-run-all-tests.yaml) — Main pipeline orchestration updated

Copilot uses AI. Check for mistakes.
Comment on lines +157 to +160
Build ID: 1597011
Status: ✅ PASSED
Duration: 44 seconds (Python MSI v2 job)
Environment: MSALMSIV2 pool (Windows 2022 VM)
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

This block includes internal Azure DevOps details (Build ID, pool name) that are not actionable for external readers and may be sensitive in a public repo. Consider replacing with a public link (if available) or summarizing results without internal identifiers.

Suggested change
Build ID: 1597011
Status: ✅ PASSED
Duration: 44 seconds (Python MSI v2 job)
Environment: MSALMSIV2 pool (Windows 2022 VM)
Status: ✅ PASSED
Duration: 44 seconds (Python MSI v2 job)
Environment: Hosted Windows 2022 environment

Copilot uses AI. Check for mistakes.
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