microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Add Passkey Integration for PS 5.1 and Improve Overall Support for Secondary Accounts

Open
#2,846 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

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.
  1. Introduce consistent and inclusive Passkey integration for both primary and secondary accounts. Modern Browsers support it and webview2 is likely already on the machine.
  2. 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.
  3. Ensure secondary accounts don't trigger a loop when attempting to sign in
Additional context?

When this occurs, sometimes you also see this message:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Connect-MgGraph sign-in flow and review how secondary accounts, passkeys, and browser authentication are handled. The requested work includes WebView2 passkey support, a configurable browser cache location, and recovery from secondary-account sign-in loops; done means these scenarios authenticate without repeated prompts or loops.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.