AzureAD / microsoft-authentication-library-for-java

Microsoft Authentication Library (MSAL) for Java http://aka.ms/aadv2
MIT License
282 stars 137 forks source link

[Bug] Managed Identity doesn't cert thumbprint from Service Fabric MI env. #773

Closed g2vinay closed 6 months ago

g2vinay commented 6 months ago

Library version used

14.4.2-beta

Java version

JDK 17

Scenario

ManagedIdentityClient - managed identity

Is this a new or an existing app?

None

Issue description and reproduction steps

Currently Managed Identity doesn't read the IDENTITY_SERVER_THUMBPRINT for Service Fabric MI environment. This cert needs to be trusted by the client to pass TLS validation when request is sent to the service fabric MI endpoint.

Azure SDK for Java logic for the same can be found here

Relevant code snippets

No response

Expected behavior

No response

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

No response

Avery-Dunn commented 6 months ago

This is a duplicate of https://github.com/AzureAD/microsoft-authentication-library-for-java/issues/758 (which links to https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4462 in the .NET repo, with more info and a proposed solution)