AzureAD / MSAL.PS

MIT License
159 stars 29 forks source link

When will be MSAL PowerShell script will be released for latest Microsoft.Identity.Client 4.7 packages? #4

Closed vedeevi closed 4 years ago

vedeevi commented 4 years ago

Please let us know when will be MSAL PowerShell scripts will be released for 4.7 packages. Currently the packages which are there for MSAL.PS of version 4.5.x are throwing errors with latest Microsoft.Identity.Client.dll. Following is the sample error which we are getting:

Script Used: Get-MSALToken -Scopes "user.read" -ClientId "<app id>" -RedirectUri "urn:ietf:wg:oauth:2.0:oob" -Interactive

Error: Exception calling "GetResult" with "0" argument(s): "The process has no package identity. (Exception from HRESULT: 0x80073D54)" At C:\Program Files\WindowsPowerShell\Modules\MSAL.PS\4.5.1.1\Get-MsalToken.ps1:288 char:13 $AuthenticationResult = $AquireTokenParameters.ExecuteAsy ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (:) [], MethodInvocationException FullyQualifiedErrorId : InvalidOperationException

We also do not have any good samples in PowerShell for using MSAL libraries to get the access token in NativeClient approach with out using ClientSecret and asking the user to provide login screen to provide his credentials (Interactive mode).

Thanks, Venu

jazuntee commented 4 years ago

The version has been updated so this should be resolved.