MSAL.PS icon indicating copy to clipboard operation
MSAL.PS copied to clipboard

Get-MsalToken shows no output in PowerShell ISE

Open o-l-a-v opened this issue 4 years ago • 2 comments

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

o-l-a-v avatar Aug 23 '21 21:08 o-l-a-v

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

i8sy72 avatar Jan 28 '22 00:01 i8sy72

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

Settleman avatar Oct 21 '22 10:10 Settleman