AzureAD/azure-activedirectory-library-for-dotnet

Unable to Acquire Token using cert and subject name auth from Powershell ISE

rohitkoppalkar opened this issue · 0 comments

Reference Code -

Issue:
This block of code prevents Powershell ISE from accessing the overloaded method -
public async Task AcquireTokenAsync(string resource,
IClientAssertionCertificate clientCertificate, bool sendX5c)
This prevents us from acquiring aad token using cert and subject name auth.

Investigation:
The powershell ise did not have this overloaddefinitions, however Powershell commandline does have this overloaded method.

Suggested Fix:
Please remove the "WINDOWS_APP" compiler directive from AuthenticationContext.cs