Skip to content

Workload Identity #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

tracyboehrer
Copy link
Member

@tracyboehrer tracyboehrer commented Jun 4, 2025

Fixes #317

Matching doc: microsoft/Agents#182

@Copilot Copilot AI review requested due to automatic review settings June 4, 2025 19:34
@tracyboehrer tracyboehrer requested a review from a team as a code owner June 4, 2025 19:34
@github-actions github-actions bot added ML: Core Tags changes to core libraries ML: Tests Tags changes to tests labels Jun 4, 2025
@tracyboehrer tracyboehrer marked this pull request as draft June 4, 2025 19:34
Copy link
Contributor

@Copilot 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 implements support for WorkloadIdentity authentication alongside existing federated credentials. Key changes include new tests covering WorkloadIdentity scenarios, updates to the MSAL authentication flow to handle WorkloadIdentity, and modifications to configuration settings and interfaces to support the new authentication type.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tests/Microsoft.Agents.Authentication.Msal.Tests/Model/ConnectionSettingsTests.cs Added tests for FederatedCredentials, WorkloadIdentity, and AssertionRequestOptions
src/libraries/Authentication/Authentication.Msal/MsalAuth.cs Updated the client assertion logic for FederatedCredentials and added a branch for WorkloadIdentity
src/libraries/Authentication/Authentication.Msal/Model/ConnectionSettings.cs Introduced new properties (FederatedTokenFile and AssertionRequestOptions) and updated validation for WorkloadIdentity
src/libraries/Authentication/Authentication.Msal/Model/AuthTypes.cs Extended enum to include WorkloadIdentity
src/libraries/Authentication/Authentication.Msal/Interfaces/IMSALConnectionSettings.cs Updated interface to support new properties for WorkloadIdentity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ML: Core Tags changes to core libraries ML: Tests Tags changes to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DotNet: Add workload identity as a authentication option
1 participant