Skip to content

Conversation

@trwalke
Copy link
Member

@trwalke trwalke commented Oct 10, 2025

Fixes #
#5537
Added: [OAuth2Parameter.ClientInfo] = "2" to the body parameters in the ClientCredentialRequest
This ensures that client credential requests now include the client info parameter with a value of "2".

This tells ESTS to include xms_acb in the token response

Changes proposed in this request

Testing

Performance impact

Documentation

  • All relevant documentation is updated.

@trwalke trwalke self-assigned this Oct 20, 2025
@trwalke trwalke marked this pull request as ready for review October 20, 2025 17:12
@trwalke trwalke requested a review from a team as a code owner October 20, 2025 17:12
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.

LGTM

{
if (CreateClientInfoForS2S)
{
return Base64UrlHelpers.Encode("{\"xms_acb\":[\"value1\",\"value2\"]}");
Copy link
Contributor

Choose a reason for hiding this comment

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

What is xms_acb? Can you add some comment to explain this?

var idtItem = tuple.Item2;
Account account = tuple.Item3;

atItem.AddAdditionalCacheParameters(clientInfoFromServer.AdditionalResponseParameters);
Copy link
Contributor

Choose a reason for hiding this comment

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

What values are we supposed to get from the server for client info?

using Microsoft.Identity.Client.TelemetryCore.Internal.Events;
using Microsoft.Identity.Client.Utils;
using System.Security.Cryptography.X509Certificates;
using System.Linq;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Unused. Remove

Copy link
Contributor

@neha-bhargava neha-bhargava left a comment

Choose a reason for hiding this comment

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

Looks good. I think there can be some comments added to explain the response from ests in tests and code. Thanks!

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.

4 participants