AzureAD / MSAL.PS

MIT License
159 stars 29 forks source link

Get-MsalToken shows no output in PowerShell ISE #36

Open o-l-a-v opened 2 years ago

o-l-a-v commented 2 years ago

MSAL.PS\Get-MsalToken -ClientId 'd1ddf0e4-d672-4dae-b554-9d5bdfd93547' -DeviceCode gives no output in PowerShell ISE terminal, but it does in regular Windows PowerShell 5.1 and 7.1 from MS Store. Is it a known issue/ intended?

README does not mention this, and I found no GitHub issues on the subject.

Running Windows 10 21H1 (19043.1165) and MSAL.PS v4.35.1.3.

Screenshots

PowerShell ISE

image

PowerShell 5.1 terminal

image

PowerShell 7.1 from MS Store

image

i8sy72 commented 2 years ago

I get the same issue running Windows 11 21H2 and MSAL.PS v4.37.0.0

Settleman commented 1 year ago

getting the same results when connecting to the same clientid.

DEBUG: Using Application with ClientId [d1ddf0e4-d672-4dae-b554-9d5bdfd93547] and RedirectUri [https://login.microsoftonline.com/common/oauth2/nativeclient] from cache. DEBUG: Aquiring Token for Application with ClientId [d1ddf0e4-d672-4dae-b554-9d5bdfd93547]

it gets stuck on acquiring token and then the below after CTRL+C.

DEBUG: Canceling Token Acquisition for Application with ClientId [d1ddf0e4-d672-4dae-b554-9d5bdfd93547]

works fine on a regular PS console