Description
I'm using autoOpenLinksInBrowser as set to true, to automatically open urls in the browser.
for m365 login, this works as expected,
for m365 cli reconsent, the correct message is shown, but the browser does not open.
No error is thrown, also when running with --debug. It's just completing the command with the message DONE.
Is this something someone can reproduce?
In the code the only difference I see is that the m365 cli reconsent command awaits the open function as a promise, while the login command does not do so:
await (this._open as typeof open)(url);
Steps to reproduce
Try the commands
Expected results
Browser is opened
Actual results
Browser did not open
Diagnostics
Executing command cli reconsent with options {"options":{"debug":true,"output":"json"}}
"Opening the following page in your browser: https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent"
DONE
CLI for Microsoft 365 version
6.2 (beta)
nodejs version
16.15.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
{
"os": {
"platform": "win32",
"version": "Windows 10 Enterprise",
"release": "10.0.22621"
},
"cliVersion": "6.2.0-beta.647e291",
"nodeVersion": "v16.15.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {
"showHelpOnFailure": false,
"copyDeviceCodeToClipboard": true,
"disableTelemetry": true,
"autoOpenLinksInBrowser": true
},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Policy.Read.All",
"Reports.Read.All",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email"
]
}
Additional Info
No response
Description
I'm using autoOpenLinksInBrowser as set to true, to automatically open urls in the browser.
for
m365 login, this works as expected,for
m365 cli reconsent, the correct message is shown, but the browser does not open.No error is thrown, also when running with
--debug. It's just completing the command with the messageDONE.Is this something someone can reproduce?
In the code the only difference I see is that the
m365 cli reconsentcommand awaits the open function as a promise, while the login command does not do so:Steps to reproduce
Try the commands
Expected results
Browser is opened
Actual results
Browser did not open
Diagnostics
Executing command cli reconsent with options {"options":{"debug":true,"output":"json"}}
"Opening the following page in your browser: https://login.microsoftonline.com/common/oauth2/authorize?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e&response_type=code&prompt=admin_consent"
DONE
CLI for Microsoft 365 version
6.2 (beta)
nodejs version
16.15.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
{
"os": {
"platform": "win32",
"version": "Windows 10 Enterprise",
"release": "10.0.22621"
},
"cliVersion": "6.2.0-beta.647e291",
"nodeVersion": "v16.15.0",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {
"showHelpOnFailure": false,
"copyDeviceCodeToClipboard": true,
"disableTelemetry": true,
"autoOpenLinksInBrowser": true
},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.ReadWrite",
"Mail.Send",
"Policy.Read.All",
"Reports.Read.All",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsApp.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email"
]
}
Additional Info
No response