microsoft / azure-devops-intellij

IntelliJ IDEA plug-in for Visual Studio Team Services and Team Foundation Server (TFS)
MIT License
151 stars 95 forks source link

Get AuthenticationInfo failed exception #158

Closed xsoheilalizadeh closed 5 years ago

xsoheilalizadeh commented 6 years ago

Rider IDE info:

JetBrains Rider 2018.2 EAP
Build #RD-182.3894.140, built on July 26, 2018
Rider EAP User
Expiration date: August 25, 2018
JRE: 1.8.0_152-release-1226-b7 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Plugin Info:

Version: 1.125.0

Exception:

getAuthenticationInfoAsync failed

com.microsoft.alm.plugin.exceptions.TeamServicesException: KEY_VSO_AUTH_FAILED
    at com.microsoft.alm.plugin.authentication.facades.VsoAuthInfoProvider.getAuthenticationInfoAsync(VsoAuthInfoProvider.java:98)
    at com.microsoft.alm.plugin.authentication.VsoAuthenticationProvider.authenticateAsync(VsoAuthenticationProvider.java:69)
    at com.microsoft.alm.plugin.authentication.AuthHelper.getAuthenticationInfoSynchronously(AuthHelper.java:59)
    at com.microsoft.alm.plugin.context.ServerContextManager.getAuthenticationInfo(ServerContextManager.java:489)
    at com.microsoft.alm.plugin.context.ServerContextManager.createContextFromGitRemoteUrl(ServerContextManager.java:372)
    at com.microsoft.alm.plugin.context.ServerContextManager.createContextFromGitRemoteUrl(ServerContextManager.java:353)
    at com.microsoft.alm.plugin.context.ServerContextManager.getAuthenticatedContext(ServerContextManager.java:333)
    at com.microsoft.alm.plugin.context.ServerContextManager.getUpdatedContext(ServerContextManager.java:563)
    at com.microsoft.alm.plugin.operations.Operation$1.run(Operation.java:184)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Explain

When I've tried to login in my TFS account I enter the correct information ( email && password ). also i receive "token added mail".

applicationframehost_2018-07-29_10-06-03

Logs

idea.log

backend.zip

Damen-Chan commented 5 years ago

@ForNeVeR

Yes, the project names and repo names use spaces except for one project. The exception uses spaces for the project name, but the repo uses hyphens in place of spaces.

ForNeVeR commented 5 years ago

Unfortunately, I still wasn't able to reproduce this issue. I have set up my account to use visualstudio.com, have tried on Linux, have added spaces into my repository name — all for nothing :(

@tingkchan let's check another thing. I can see that there's a strange URL username.visualstudio.com/DefaultCollection/Project%20Name/git in your settings. Could you please explain what's it? It looks like you're using TFS/TFVC and Git with the same repository, is that true?

I wasn't able to reproduce this particular quirk with my own repositories.

Damen-Chan commented 5 years ago

@ForNeVeR

I am not sure what you are asking me to explain. But that strange URL is the Repository URL for the project saved in git. It is: https://username.visualstudio.com/DefaultCollection/Project%20Name/_git/Repository-Name

I've tested it repeatedly. When I get the list projects from DevOps, I see the new URL scheme. But after I save it to my IDE, the Repository URL value is saved in the git config file in the format above.

The URL online in DevOps is: https://dev.azure.com/username/project%20name

Maybe this is a problem with my account and I should check with DevOps support.

jds3d commented 2 years ago

I just had this issue and was able to bypass it by clicking on the link in the Console: fatal: unable to access 'https://dev.azure.com/xxx/yyy/_git/zzz/' When I clicked that link, i was able to sign in a different way and then it stopped looping me around.

alanalvarado commented 1 year ago

I'm having the same issue, the app loops showing me one authentication code after another once I authenticate. I'm using Windows 11 Enterprise 22H2 22621.675 and PhpStorm 2022.2.3 and the plugin Azure DevOps 1.162.0

johnpeeke commented 1 year ago

Just putting this here as I struggled with this as well. I had to make sure I specified that rider used the credential helper for git. image

mths0x5f commented 7 months ago

Just putting this here as I struggled with this as well. I had to make sure I specified that rider used the credential helper for git. image

Jesus Christ, this is what actually helped me.