Skip to content
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

Expose client capabilities in AssertionRequestOptions for MSI FIC scenarios #4972

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gladjohn
Copy link
Contributor

Fixes #4948

Changes proposed in this request
Updated AssertionRequestOptions to handle client capabilities for MSI Federated Identity Credential (FIC) scenarios, ensuring that higher-level SDKs can pass capabilities to MSAL.

Testing
unit tests

Performance impact
n/a

Documentation

  • All relevant documentation is updated.

@gladjohn gladjohn requested a review from a team as a code owner October 22, 2024 18:27
/// <summary>
/// Client Capabilities to be included in the client assertion
/// </summary>
public IEnumerable<string> ClientCapabilities { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

Aren't going to set these?

@@ -1857,6 +1857,7 @@ public void AssertionInputIsMutable()
options.TokenEndpoint = "https://login.microsoft.com/v2.0/token";
options.CancellationToken = CancellationToken.None;
options.Claims = TestConstants.Claims;
options.ClientCapabilities = TestConstants.ClientCapabilities;
Copy link
Member

@bgavrilMS bgavrilMS Oct 24, 2024

Choose a reason for hiding this comment

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

A test for this is as follows:

  1. Create a CCA + WIthClientAssertion(AssertionOptions o => { Assert.AreEquals( "cp1", o.CP})
  2. Call AcquireToken*.WithCP("cp1");

Copy link
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

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

You also need to set them.

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.

[Feature Request] Expose client capabilities in AssertionRequestOptions for MSI FIC scenarios
5 participants