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

Authentication does not work #468

Closed
timiimit opened this issue Aug 31, 2022 · 5 comments
Closed

Authentication does not work #468

timiimit opened this issue Aug 31, 2022 · 5 comments

Comments

@timiimit
Copy link

timiimit commented Aug 31, 2022

Platform

Operating system and version: Microsoft Windows 10 Pro (10.0.19044 Build 19044)
Legendary version (legendary -V): legendary version "0.20.27", codename "Dark Energy (hotfix)"

Expected Behavior

Account gets added to legendary

Current Behavior

Command: legendary auth
Output:

[cli] INFO: Testing existing login data if present...
Please login via the epic web login!
If the web page did not open automatically, please manually open the following URL: https://www.epicgames.com/id/login?redirectUrl=https://www.epicgames.com/id/api/redirect
Please enter the "sid" value from the JSON response: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[Core] ERROR: Getting exchange code failed: {'errorCode': 'errors.com.epicgames.unauthorized', 'message': 'You are not authenticated. Please authenticate.', 'correlationId': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'}
[cli] CRITICAL: No exchange token, cannot login.

Steps to Reproduce

  • download & install latest legendary version
  • use legendary auth
  • copy sid from website into console
  • press enter

Additional information

i noticed this about 12 hours ago. i'm not sure if epic is temporarily playing with us or if we need another authentication method.

@imLinguin
Copy link
Contributor

Try using a WebView method

@elenakrittik
Copy link

Many people have the same issue when using HGL, looks like Epic changed something on their side (EGL was updated recently, too).
Issue on HGL's repo

@nutterthanos nutterthanos mentioned this issue Aug 31, 2022
@derrod
Copy link
Owner

derrod commented Aug 31, 2022

Seems like Epic changed something. I can get the WebView based login working again on Windows but on Linux and Mac that won't work for the standalone binary.

@nutterthanos
Copy link

nutterthanos commented Aug 31, 2022

its failing with this
https://www.epicgames.com/id/api/exchange/generate
could switch login via authorization_code generated from https://www.epicgames.com/id/api/redirect?clientId=34a02cf8f4414e29b15921876da36f9a&responseType=code

legendary currently only allows login from exchange_code
only way i could login right now is modify the request in httptoolkit

@derrod
Copy link
Owner

derrod commented Sep 1, 2022

could switch login via authorization_code generated from https://www.epicgames.com/id/api/redirect?clientId=34a02cf8f4414e29b15921876da36f9a&responseType=code

Curious, I could've sworn I've tried that at some point in the past and it didn't work, but now it does. I'll release a hotfix using that instead soon.

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

No branches or pull requests

5 participants