Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows PowerShell opens ADAL forms page in background #6084

Closed
JeremyTBradshaw opened this issue May 21, 2020 · 3 comments
Closed

Windows PowerShell opens ADAL forms page in background #6084

JeremyTBradshaw opened this issue May 21, 2020 · 3 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@JeremyTBradshaw
Copy link

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 1.0.1401.0

Any other software? Yes - MSOnline/AzureAD/ExchangeOnlineManagement Windows PowerShell modules.

Steps to reproduce

When executing Connect-MsolService, Connect-AzureAD, Connect-ExchangeOnline, or any cmdlet that will invoke a Modern Authentication, the webpage/authentication form window opens behind the Windows Terminal window. This doesn't happen in Windows PowerShell when not using it in Windows Terminal.

Expected behavior

The webpage/authentication form window should open in the foreground so that you know it's there, and can enter your credentials.

Actual behavior

Currently, you have to notice that a Windows PowerShell taskbar icon has spawned, and switch to it manually.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 21, 2020
@DHowett
Copy link
Member

DHowett commented May 21, 2020

Hey, really sorry about that. This is a known limitation with how window handling is done in Terminal. There's a bad old console API that let a text-mode app get a window handle to present on top of. SSH, VSCode, Terminal, etc. do not work with it because they may not have a single window (or may not have a window at all.)

More details in /dup #2988

@ghost
Copy link

ghost commented May 21, 2020

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed May 21, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 21, 2020
@JeremyTBradshaw
Copy link
Author

Thanks. I couldn't find the original issue when searching, so I'm happy to know there is one already.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants