microsoftgraph / msgraph-cli-archived

The Microsoft Graph CLI repository has moved. This repository is now an archive.
https://github.com/microsoftgraph/msgraph-cli
Other
44 stars 9 forks source link

Canceling login by closing browser isn't handled by CLI #100

Closed MIchaelMainer closed 3 years ago

MIchaelMainer commented 3 years ago

Describe the bug Using PowerShell 7.1.3, starting to login, and then closing the browser window leaves the CLI in a stuck state. ctrl+c won't work.

To Reproduce Steps to reproduce the behavior:

  1. Install CLI.
  2. mg login --scopes "group.read.all", a browser window will open.
  3. Close the browser window.
  4. Go to PowerShell window and try ctrl+c, the PowerShell session is stuck.
  5. Wait a couple of minutes for PowerShell to provide the Terminate batch job (Y/N)? prompt.

Expected behavior The CLI is called back from the closed browser window so that the CLI can fail fast and provide an actionable message to the user.

AB#9276

jobala commented 3 years ago

@MIchaelMainer this issue is a duplicate of #63