Get AuthenticationInfo failed exception
See original GitHub issueRider 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”.
Logs
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:55 (1 by maintainers)
Top Results From Across the Web
Apache Shiro login error: IncorrectCredentialsException
I keep getting this error when i attempt to login. ... AuthenticationInfo info = null; try{ USER user = new USER(); String pass...
Read more >Troubleshooting | VPC Service Controls
Find VPC Service Controls errors. This section details the following methods to find VPC errors in your audit logs: Using the error's unique...
Read more >How to get the value of SOAP Header.
Message : Execution of the expression "xpath3('/:Envelope/:Header/:AuthenticationInfo/:userName')" failed. (org.mule.api.expression.ExpressionRuntimeException).
Read more >Apache Shiro Authentication
Shiro has a rich runtime AuthenticationException hierarchy that can indicate exactly why the attempt failed. You can wrap login in a try/catch block...
Read more >authentication failed for LDAP provisioned DB user
When building a calculation view, and browsing for the object, I am getting "Error: Incorrect Service: Connect error: authentication failed" ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Steps to reproduce
It looks like I was able to achieve a stable reproduction of issue in my environment. Here’s the steps to reproduce the issue:
Now, depending on IDEA version and your Git settings, you’ll encounter one of the following scenarios:
Bad news
As you can see, the issue is becoming more serious in more recent versions of IDEA and other IDEA-based IDEs.
The troublesome component is
TfGitHttpAuthDataProvider
. This component becomes active if Git asks IDEA for credentials. In IDEA 2017 and 2018, it was a rare case on Windows (only if the credential manager was manually disabled or if the user explicitly canceled the credential manager request), but it now works by default in IDEA 2019.1+, because IDEA now disables the default credential manager when the Git is started from IDEA.In IDEA 2017, it had one problem: the format of URL it received was not the expected one. Git was sending the following URL:
https://username@dev.azure.com
, but the plugin expected the formathttps://dev.azure.com/username
. The URL was successfully patched inside of an authentication flow (and that’s why the authentication seems to work), but it wasn’t patched afterwards. So, the plugin was asking the authentication mechanism to provide the credentials for URLhttps://username@dev.azure.com
, but the mechanism only had the credentials for URLhttps://dev.azure.com/username
.It became even worse in IDEA 2018, because now the
GitHttpAuthDataProvider
interface is expanded to not pass the username by default (the plugin need to override another method to get the username).And it became much worse around IDEA 2019, because now IDEA disables the default credential manager, so the plugin’s mechanism is suddenly always enabled.
Good news
The good news is that now we have a reproduction steps and we’re fully aware of the issue. Hopefully we’ll be able to fix it very soon. Thanks to everyone who reported here, and we’re sorry for the inconveniences caused by this issue. Please stay tuned.
Same issue here…
IntelliJ IDEA 2019.1 (Ultimate Edition) Build #IU-191.6183.87, built on March 27, 2019 JRE: 1.8.0_202-release-1483-b39 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 5.0.3-200.fc29.x86_64
plugin version: 1.150.0