EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
991 stars 155 forks source link

3.37 Invalid Credentials #403

Closed Boesergolf closed 5 years ago

Boesergolf commented 5 years ago

I am having trouble getting EDMC to run Properly , after starting Tce frontiers auth login appears and i login and click approve but edmc then opens and is stuck on Invalidd credentials . Even tried 3.36 same Problem.

Tried To use Chrome instead of Firefox but even then the Problem stays. EDMarketConnector.log

Marginal commented 5 years ago

Run EDMC first, outside of TCE, and complete the login procedure.

Boesergolf commented 5 years ago

did this already but it doesnt change the invalid credentials even after pressing approve on the fronter auth login

jamsoft commented 5 years ago

I can confirm this issue. I'm stuck in the same situation. I've tried everything I can think of and I'm still getting Invalid Credentials. I use LastPass so I know whatever is going on it's not invalid credentials.

Interestingly I get to the Frontier site, last pass fills the credentials and hitting Login does nothing.

So I restarted everything.

Loaded EDMC which then loaded FireFox. LastPass entered my credentials hitting login pulled up that stupid image Captcha. I did that, hit submit ... nothing.

I think the issue is on Frontiers ...

Marginal commented 5 years ago

@jamsoft Please check the Firefox instructions here or try temporarily setting your default browser to something else.

Juggernaut93 commented 5 years ago

@jamsoft I have just had the same issue. I solved by going to the Frontier auth service website, logging in, deauthorizing EDMC and then trying to get credentials again through EDMC. Frontier asked me to authorize EDMC again and then it worked.

rdnt commented 5 years ago

Had the issue for the past 5 minutes, doing exactly what @Juggernaut93 suggested fixed the issue.

richardbuckle commented 5 years ago

Link should be https://auth.frontierstore.net/

Juggernaut93 commented 5 years ago

@richardbuckle oops, fixed.

Marginal commented 5 years ago

Thanks. Added to the Troubleshooting guide in 9be34ba.

Sobeefy commented 5 years ago

I was having the same issue, "invalid credentials" and the frontier auth page being opened, but logging into it did nothing. I attempted Juggernaut93's solution but now my EDMC window is stuck on "Logging in..."

I have spent too much time on this for now so will try again later.

rdnt commented 5 years ago

@Sobeefy try closing ED:MC and any frontier browser tabs. Keep the browser open. Then open ED:MC, it will launch a new tab with the authentication page.

jamsoft commented 5 years ago

@Marginal I had tried that already.

@Juggernaut93 Will try that solution later, thanks.

hack-wizard commented 5 years ago

Tried all listed solutions, including clean uninstall and resinstall and now EDMC will not even let me hit update, help please?

Update: ok button issue goes away after getting into elite but I still have the same issue. Is something messed up with frontier or EDMC? EDMarketConnector.log

Marginal commented 5 years ago

@hack-wizard https://github.com/Marginal/EDMarketConnector/wiki/Troubleshooting#credentials-settings-are-greyed-out

Not seeing any redirect back to EDMC after authorising on the Frontier website. What browser are you using?

hack-wizard commented 5 years ago

I attempted this in both chrome and firefox, same issue with both.

Queex commented 5 years ago

Same problem here, the deauth workaround fixed it though.

hack-wizard commented 5 years ago

In case it wasn't clear, I tried the deauth in both Firefox and chrome, when doing a reauth I still get invalid credentials. Thoughts, ideas or additional steps please?

Sobeefy commented 5 years ago

Didn't have any luck last night but loaded up tonight, authentication page worked properly and now its fine. Thanks all.

Cryzin commented 5 years ago

Same issue

matpoz91 commented 5 years ago

Same issue here, no workarounds fix it, tried multiple times. Using Chrome, but also checked Opera and Edge

Queex commented 5 years ago

Now it's stopped working again, only this time it doesn't even pop up the auth window in browser to try to correct it, so there's no possibility of getting it to work.

incryptx commented 5 years ago

To chime in on users having problems with EDMC/EDDI getting authorized through the browser and with Frontier Authorization API this process will work.

First, go to https://auth.frontierstore.net/ and log in with your "Elite Credential Set" (the same username/password for the Elite Game). Then look at your aurthorized applications. You may also see Inara and EDSM as well as EDMC and EDDI (if you use it). If you cannot get approval for EDMC, then "Deauthorize" EDCM and any other application using an API you may have problems with. Once done, go through the process of authorizing EDMC and any other application using an API. When successful, you should now see it in the "Authorized" list again. If EDMC has problems, then the code it gets for authorization is no longer valid or has expired for some reason. This will give you a new code and allow your app to validate again.

Book Mark the site https://auth.frontierstore.net/ so you can use it again in the future. I tried this in Chrome and Firefox and both work. I.E. had problems, but who uses that.

Hope this resolves the issue in the short term until Frontier stabilizes the there API process.

Be well.

hack-wizard commented 5 years ago

Just tried it again on a lark, seems to be working all of a sudden. Maybe frontier is doing stuff on their end?

matpoz91 commented 5 years ago

Still not working for me, still tries to log in, still invalid credentials.

incryptx commented 5 years ago

Still not working for me, still tries to log in, still invalid credentials.

Did you de-authorize and re-authorize the app with the site I mentioned?

matpoz91 commented 5 years ago

Yes, three times today already, multiple times in the past days. Nothing seems to work for me...

I even reinstalled, still isn't working

Cryzin commented 5 years ago

To chime in on users having problems with EDMC/EDDI getting authorized through the browser and with Frontier Authorization API this process will work.

First, go to https://auth.frontierstore.net/ and log in with your "Elite Credential Set" (the same username/password for the Elite Game). Then look at your aurthorized applications. You may also see Inara and EDSM as well as EDMC and EDDI (if you use it). If you cannot get approval for EDMC, then "Deauthorize" EDCM and any other application using an API you may have problems with. Once done, go through the process of authorizing EDMC and any other application using an API. When successful, you should now see it in the "Authorized" list again. If EDMC has problems, then the code it gets for authorization is no longer valid or has expired for some reason. This will give you a new code and allow your app to validate again.

Book Mark the site https://auth.frontierstore.net/ so you can use it again in the future. I tried this in Chrome and Firefox and both work. I.E. had problems, but who uses that.

Hope this resolves the issue in the short term until Frontier stabilizes the there API process.

Be well.

This solution worked for me, de-authorize and re-authorizing. Thank you!

incryptx commented 5 years ago

Yes, three times today already, multiple times in the past days. Nothing seems to work for me...

I even reinstalled, still isn't working

That's strange. I assume your using Chrome or Firefox. I also assume your using Windows 7/10? Is your firewall blocking, or are you trying it through a VPN connection? I tried through a VPN and it never worked. Are you on a corporate network of some kind? Something is blocking you from receiving the incoming dialog back through the browser. I'm sorry, I just don't know enough about your configuration to be of any help. Your not using I.E. or Edge are you?

matpoz91 commented 5 years ago

That's strange. I assume your using Chrome or Firefox. I also assume your using Windows 7/10? Is your firewall blocking, or are you trying it through a VPN connection? I tried through a VPN and it never worked. Are you on a corporate network of some kind? Something is blocking you from receiving the incoming dialog back through the browser. I'm sorry, I just don't know enough about your configuration to be of any help. Your not using I.E. or Edge are you?

Now something about the process:

incryptx commented 5 years ago

That's strange. I assume your using Chrome or Firefox. I also assume your using Windows 7/10? Is your firewall blocking, or are you trying it through a VPN connection? I tried through a VPN and it never worked. Are you on a corporate network of some kind? Something is blocking you from receiving the incoming dialog back through the browser. I'm sorry, I just don't know enough about your configuration to be of any help. Your not using I.E. or Edge are you?

* I tried on Chrome, Firefox, Opera and Edge, Chrome being my main browser

* I have Win10

* My firewall isn't blocking, I do not use a VPN, I'm on my own network

* I used EDMC for about a month, it worked perfectly fine until now

Now something about the process:

* I tried deauthing/authing while the game was on and off

* I tried turning the game on first and EDMC later, and also the other way around

* First I deauth and I can auth it without any problems, but the logging in/invalid credentials issue persists

* When it is authorised and I open EDMC, the Frontier Auth page pops up, but when I enter my credentials and click login nothing happens. It still shows on EDMC that it is logging in.

* When I click the update button when it is logging in, Invalid credentials error appears.

* I also tried authenticating by opening EDMC settings and imediatly clicking ok, so the auth page appears. Also didn't work

I only have a few questions? 1) When you say your on your own network, does that mean you have a router and a set of IP's behind both a firewall and seperate DNS' servers? Or are you on a router straight to the internet? Also, where are you in the world? Are you using some kind of Virtual Network Adapter in Windows 10. I found a TAP-V9 Adapter in my network stack as well as a Hyper-V Adapter. I disabled both so there was just the main "Ethernet Adapter" running.

2) It sounds like something very simple, like a typo in the credential set. Are you cutting and pasting credentials, or doing it from memory? Not to be rude, but I had the same problem for awhile, and then I realized I was hitting zero on my keyboard, right above the "O" I was suppose to use. You also might try changing your password at the Elite Store (where you get the game) and using the new password when you authenticate with EDMC. I did this, and it solved the problem I had with EDDI's use of Frontier's API, while EDCM continued to work, when EDDI would not.

The problems you are having make no sense here. It should work, but something weird is going on. A network switch in the way, a typo, a set of credentials that don't match, something unseen or unrealized. Best I can do for you sir. That's all I can suggest.

Hope this gives you some things to try. Maybe you will discover what the problem is.

Be well.

matpoz91 commented 5 years ago

I've managed to find a solution.

It appears that on my browsers, during the authorisation when the window that wants to open EDMC appears, I clicked to always open such links in EDMC. I've installed another browser and didn't tick that checkbox this time... and it worked. Authorised, logged in, everything works great. I don't know what was the real problem here, but leaving this solution just in case.

richardbuckle commented 5 years ago

That makes perfect sense. EDMC registers itself as the handler for a custom URL protocol, which the authorisation page invokes as a callback so as to return data to EDMC. For security reasons the browser needs a human to confirm that EDMC is the proper handler for that protocol.

matpoz91 commented 5 years ago

For security reasons the browser needs a human to confirm that EDMC is the proper handler for that protocol.

So why does the browser add the chceckbox to handle it automatically in the first place? That's like asking for something to go wrong. And also, is there any method to "uncheck" the checkbox now on my default browser? I've deleted the cookies and restored page notification defaults, but no luck.

incryptx commented 5 years ago

For security reasons the browser needs a human to confirm that EDMC is the proper handler for that protocol.

So why does the browser add the chceckbox to handle it automatically in the first place? That's like asking for something to go wrong. And also, is there any method to "uncheck" the checkbox now on my default browser? I've deleted the cookies and restored page notification defaults, but no luck.

That checkbox is to add the application to the browsers list of applications it will handle under "Options/Applications" in your browser. Look under "Options/Applications" in Firefox.

Under "Applications" in Firefox, If you click that checkbox then you may already have "edmc" listed. If not, enter "edmc" as one of the applications and then choose the .exe, i.e. "EDMarketConnector.exe" in the applications window. It will show up as "edcm" and "Use EDMarketConnector.exe (default)"

I also have "eddi" and choosing "VoiceAttack (default) for EDDI to authenticate through the browser.

I'm glad you worked it out. I thought it would be something weird like that.

Good deal. You now have two solutions next time it occurs.

ghost commented 5 years ago

De-authorising then Re-Authorising worked for me when I ran into this problem today.

Marginal commented 5 years ago

I can't reproduce the problem when setting Chrome to always open edmc:// links with EDMC, but it's a known problem in Firefox. In any case it should be fixed in the next release.

ghost commented 5 years ago

I'll also add that the browser with the problem was indeed Firefox.

Marginal commented 5 years ago

The Firefox issue is fixed in Release 3.38 and the deauthorization problem gives a different error message (not particularly helpful but that's what the server reports). So marking this fixed. Please raise a new issue for any remaining problems.