msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Add Passkey Integration for PS 5.1 and Improve Overall Support for Secondary Accounts
Is your feature request related to a problem? Please describe the problem.
I use a secondary account for Graph API interactions. I have Passkey setup where if I login to it from Chrome or Edge, I get a QR code to use as the passkey. However, when I login to this account through this module I am always prompted with a MFA MS Authenticator code.
Enabling WAM to use WHfB is not an option, as this account does not login to Windows.
There also seems to be issues unique to this module that cause a sign in loop, where you click sign in, it starts to think about it with the sign in indeterminant progress bar, then kicks you right back to the account picker. It seems like this has to do with the fact that this account's password rotates daily, so I can only really repro this 1x per day. Recovery from this is that you have to completely sign out of the account in the module then start fresh, very poor UX. (feel free to add the bug tag for this piece, but it felt like the 2 go together given the theme of secondary accounts)
Describe the solution you'd like.
- Introduce consistent and inclusive Passkey integration for both primary and secondary accounts. Modern Browsers support it and webview2 is likely already on the machine.
- In addition to the above, allow users to provide their own browser cache location via a parameter on Connect-MgGraph so that users can point to Chrome or Edge caches (or any other browser based on Chromium). If I've just signed in with a Passkey on Chrome (say to access the Intune portal), I don't want to do it again immediately after when I use this module.
- Ensure secondary accounts don't trigger a loop when attempting to sign in
Additional context?
When this occurs, sometimes you also see this message: