git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

Skip confirmation for GCM_MSAUTH_USEDEFAULTACCOUNT

Open KevinKruse opened this issue 6 months ago • 3 comments

Feature description

When using GCM_MSAUTH_USEDEFAULTACCOUNT, it still asks for (UI-based) confirmation for the account used. How can i set a flag to bypass this confirmation and directly use the default account (what i assumed does this flag in the first place)?

KevinKruse avatar Aug 04 '25 10:08 KevinKruse

Came here to find out if this is a regression. I only recently noticed that every new terminal instance asks for GUI confirmation, it used to be cached a while back.

abster95 avatar Aug 25 '25 09:08 abster95

What are the steps for reproducing this issue?

mr-otmarg avatar Nov 07 '25 08:11 mr-otmarg

  1. Create a VM with MS Broker enabled (AFAIK e.g. Entra-ID MS Accounts)

  2. Install Git and configure Oauth/MS-Auth Default Account flags: GCM_MSAUTH_USEDEFAULTACCOUNT=true GCM_MSAUTH_USEBROKER GCM_AZREPOS_CREDENTIALTYPE=oauth

  3. Git clone a repo from e.g. azure devops (where entra-id credentials are used)

Now there is a pop-up which could be configured to be bypassed directly.

KevinKruse avatar Nov 08 '25 10:11 KevinKruse