Adham Enaya
Adham Enaya

Reputation: 908

VS 2019 keeps asking for re-entering my credentials for Azure DevOps

Every time I log in I connect to DevOps through Visual Studio Pro 2019. It asks for entering the credentials. Is there a way to save them and connect them to the DevOps server directly?

Upvotes: 3

Views: 4272

Answers (4)

Moslem Ben Dhaou
Moslem Ben Dhaou

Reputation: 7005

Use System web browser under Tools -> Options -> Environment -> Accounts

More info HERE

Upvotes: 0

Toby Simmerling
Toby Simmerling

Reputation: 2244

My situation was similar to @gharel I had a private Nuget source in the NuGet.Config file that I didn't have credentials set for.

Added the credentials, restarted visual studio, and it worked fine

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <packageSources>
        <clear />
        <add key="{yourPrivateSource}" value="https://nuget.pkg.github.com/{yourPrivateSource}/index.json" />
    
    </packageSources>

    <packageSourceCredentials>
        <{yourPrivateSource}>
            <add key="Username" value="{yourUsername}" />
            <add key="ClearTextPassword" value="{yourPassword}" />
        </{yourPrivateSource}>      
    </packageSourceCredentials>
</configuration>

Upvotes: 0

gharel
gharel

Reputation: 573

I my case I had a Nuget source for a package inside Azure DevOps, ex:

https://pkgs.dev.azure.com/...

And the credentials were no longer working, showing this error in the output window:

{"$id":"1","innerException":null,"message":"User 'xxx-xxx-xxx-xxx-xxx' lacks permission to complete this action. You need to have 'ReadPackages'.","typeName":"Microsoft.VisualStudio.Services.Feed.WebApi.FeedNeedsPermissionsException, Microsoft.VisualStudio.Services.Feed.WebApi",
            "typeKey":"FeedNeedsPermissionsException","errorCode":0,"eventId":3000}

Upvotes: 1

blkbam
blkbam

Reputation: 548

It could possibly be the "Cryptographic network provider" and "Credential helper" in the "Git Global Settings". Check to see if they are Unset and if so set them to OpenSSL and GCM Core respectively.

enter image description here

Upvotes: 8

Related Questions