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:
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).
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