Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension keeps asking for me to log in #601

Open
yooakim opened this issue Oct 19, 2024 · 9 comments · May be fixed by #609
Open

Extension keeps asking for me to log in #601

yooakim opened this issue Oct 19, 2024 · 9 comments · May be fixed by #609

Comments

@yooakim
Copy link

yooakim commented Oct 19, 2024

I use the extension (v1.247.2) with VS Code. I have multiple accounts. The Azure Pipelines extension keeps asking me to log in. It doesn't matter that I have signed in - this dialog comes up all the time. It shows up as soon as I switch to another file.

Image

@winstliu
Copy link
Member

Thanks for reporting - I assume your account does have access to the organization listed? Is this an Entra-joined ADO organization, or a personal org?

@penyland
Copy link

I have the same issue for an Entra-joined ADO org.

@BenDuguid-MRM
Copy link

It also keeps popping up even though I've selected "Turn off Info and Warning Notifications from 'Azure Pipelines'"

Checking the output for the Azure Pipelines extension I'm seeing repeated:

(11/13/2024, 4:01:50 PM) [SchemaDetection] sc is an Azure repo
(11/13/2024, 4:01:54 PM) [SchemaDetection] No account found for [organisation]
(11/13/2024, 4:01:54 PM) [SchemaDetection] Error: Unable to delete nonexistent file 'vscode-userdata:/c:/Users/[user]/AppData/Roaming/Code/User/globalStorage/ms-azure-devops.azure-pipelines/1ESPTSchema' while deleting 1ESPT schema. It's possible that the schema file does not exist
(11/13/2024, 4:01:54 PM) [SchemaDetection] Using hardcoded schema for workspace folder sc: /c:/Users/[user]/.vscode/extensions/ms-azure-devops.azure-pipelines-1.247.2/service-schema.json

@winstliu
Copy link
Member

For people hitting this, how many Azure/Entra tenants does your account have access to? I'm going to add some more debugging to see what's going wrong.

@penyland
Copy link

My account has access to 3 tenants and 8 subscriptions for those.

@DanielBrown-ranger1968
Copy link

Same problem here, one tenant, 15 subscriptions

@winstliu
Copy link
Member

winstliu commented Nov 22, 2024

Hello folks! I have a test build for you to try out, if you don't mind: https://artprodwcus0.artifacts.visualstudio.com/A0efb4611-d565-4cd1-9a64-7d6cb6d7d5f0/c86767d8-af79-4303-a7e6-21da0ba435e2/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL21zZW5nL3Byb2plY3RJZC9jODY3NjdkOC1hZjc5LTQzMDMtYTdlNi0yMWRhMGJhNDM1ZTIvYnVpbGRJZC8yOTM1ODU5OS9hcnRpZmFjdE5hbWUvYXp1cmUtcGlwZWxpbmVzLXZzY29kZQ2/content?format=file&subPath=%2Fextension.vsix

Hopefully, if the tenant your ADO organizations are connected to is the same as your account's default tenant, things will Just Work.
If your ADO orgs are using a different tenant (but under the same account), then you should see the same "no access" popup but with a new option that lets you change the tenant that we try to use when authenticating.

Let me know if this fixes your issue! If not, please run the "Output: Show Output Channels..." command from the Command Palette, select Azure Pipelines, then share the logs here as well as the tenant ID listed when you go to https://dev.azure.com/YOUR-ORG-HERE/_settings/organizationAad.

@penyland
Copy link

The test build works good for me! Looking forward to the update!

@im-aIex
Copy link

im-aIex commented Nov 25, 2024

That test build resolved the issue for me as well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants