microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.08k stars 28.52k forks source link

Azure repo extension creds expired. #205404

Open avenson278 opened 9 months ago

avenson278 commented 9 months ago

Getting the following each day several times.

**_The provided credentials are either invalid or expired. Would you like to reauthenticate?

Source: Azure Repos_**

TylerLeonhardt commented 9 months ago

Can you provide the contents of the Microsoft Authentication output pane: image

And also anything that shows up in Dev Tools:

Also how are you using this extension? In VS Code for the desktop or vscode.dev?

avenson278 commented 9 months ago

I use this extension to make my connection to Azure DevOPs via my windows 10 laptop for Terrform development. Microsoft Authentication output pane 12-4-2023.txt Capture

TylerLeonhardt commented 9 months ago

The fact that you have 10 sessions is so wrong... though it's not clear how you got into this state. Can you please sign out of your Microsoft via the account menu (the person icon) and then reload the window and then include these logs again?

avenson278 commented 9 months ago

Capture PNG-1

TylerLeonhardt commented 9 months ago

I'd like the Output pane as well. Do you see this issue still after you signed out and signed back in?

avenson278 commented 9 months ago

I'll send you the output. I still see the issue and tried multple things before submitting the issue including signing out.

tctxdwyer commented 7 months ago

Hi, I am having this issue as well. Was there a resolution?

tctxdwyer commented 6 months ago

Hi @TylerLeonhardt and @lszomoru, did you get the outputs needed from the OP? I am having this exact same issue and would like to help get this resolved. I have had this issue persist across computers and users at my organization.

I have tried a fresh install of VS Code, a fresh install of all extensions, and I also tried downgrading to a previous Azure Repos extension (from v0.38 to v0.36) with no improvement.

I usually work in two independent windows connected to two different repositories. I have noticed that often when I am prompted to reauthenticate in one session, I will have to shortly after in the other as well, however reauthenticating in one instance does not remove the popup in the other, I always have to reauthenticate in both.

I have included my output log files for Microsoft Authentication for both sessions as well as a screen shot of my sign-in activity through Microsoft filtered for request from Visual Studio Code for cross-reference.

Please let me know if this helps or if you need any additional information. SignInActivity Session1.txt Session2.txt

TylerLeonhardt commented 6 months ago

Yeah you're getting into a bad state somehow... I need to investigate further. Thanks for providing the sessions!