Connect-MgGraph: support native login flow similat to Connect-ExchangeOnline
Is your feature request related to a problem? Please describe the problem.
The browser login flow requires me to always logout from the browser manually afterwards.
Describe the solution you'd like.
Connect-ExchangeOnline opens a native login window, I would prefer this to the browser flow. For compatibility, this could be available with a flag.
Additional context?
No response
Hi @serkonda7 do you mean that when you run Disconnect-MgGraph command it redirects you to a browser where you are required to logout?
No, what he is referring to is when connecting to the Graph Powershell module it opens your default browser for authentication vs when using the ExchangeOnline module it opens in a native browser window. This is helpful when you are connecting to multiple tenants you don't have to worry about logging into the wrong tenant or adding that tenant to your browser cache.
No, what he is referring to is when connecting to the Graph Powershell module it opens your default browser for authentication vs when using the ExchangeOnline module it opens in a native browser window. This is helpful when you are connecting to multiple tenants you don't have to worry about logging into the wrong tenant or adding that tenant to your browser cache.
@timayabi2020 I mean exactly this ^^
I agree, FWIW.
@serkonda7 @ryanchrisw I think you can make use of Connect-MgGraph -UseDeviceCode which bypasses any pre-signed browser sessions by forcing a manual code entry process.
Connect-MgGraph -TenantId "<Tenant-ID>" can also work
@timayabi2020 your suggestions could indeed work. But one might expect some consistency across products