Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Get-MsalToken shows no output in PowerShell ISE #36

Open
o-l-a-v opened this issue Aug 23, 2021 · 2 comments
Open

Get-MsalToken shows no output in PowerShell ISE #36

o-l-a-v opened this issue Aug 23, 2021 · 2 comments

Comments

@o-l-a-v
Copy link

o-l-a-v commented Aug 23, 2021

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
Copy link

i8sy72 commented Jan 28, 2022

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

@Settleman
Copy link

Settleman commented Oct 21, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants