AchetaGames / Epic-Asset-Manager

A frontend to Assets purchased on Epic Games Store
https://flathub.org/apps/details/io.github.achetagames.epic_asset_manager
MIT License
386 stars 21 forks source link

Unable to login. #238

Closed RokeJulianLockhart closed 1 year ago

RokeJulianLockhart commented 1 year ago

Describe the bug I am not redirected during authentication.

To Reproduce Steps to reproduce the behavior:

  1. https://flathub.org/apps/io.github.achetagames.epic_asset_manager
  2. https://dl.flathub.org/repo/appstream/io.github.achetagames.epic_asset_manager.flatpakref
  3. https://apps.kde.org/discover/
  4. image
  5. https://www.epicgames.com/id/api/redirect?clientId=34a02cf8f4414e29b15921876da36f9a&responseType=code

    {"redirectUrl":"https://localhost/launcher/authorized?code=727167fa40c344f0ac8700ef46d6204f","authorizationCode":"727167fa40c344f0ac8700ef46d6204f","sid":null}
    X-Firefox-Spdy: h2
    access-control-allow-credentials: true
    cache-control: no-store, no-cache, must-revalidate, proxy-revalidate, no-cache
    content-encoding: gzip
    content-language: en-GB
    content-security-policy: default-src 'self' 'unsafe-inline'; style-src 'self' static-assets-prod.epicgames.com static-assets-prod.unrealengine.com; script-src 'self' 'unsafe-inline'
    content-type: application/json; charset=utf-8
    date: Sat, 12 Aug 2023 11:45:14 GMT
    etag: W/"9f-4lC7y9NSAH1R+yiKf66cNH8iGHY"
    expires: 0
    pragma: no-cache
    referrer-policy: same-origin
    strict-transport-security: max-age=15552000; includeSubDomains
    surrogate-control: no-store
    vary: Accept-Encoding, Origin, Accept-Encoding
    x-content-type-options: nosniff
    x-frame-options: SAMEORIGIN
    x-powered-by: PHP 7.2.7
    x-xss-protection: 1; mode=block
    
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
    Accept-Encoding: gzip, deflate, br
    Accept-Language: en-GB
    Connection: keep-alive
    Host: www.epicgames.com
    Sec-Fetch-Dest: document
    Sec-Fetch-Mode: navigate
    Sec-Fetch-Site: none
    Sec-Fetch-User: ?1
    TE: trailers
    Upgrade-Insecure-Requests: 1
    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Expected behavior I should have been authenticated.

Desktop (please complete the following information):

RokeJulianLockhart commented 1 year ago

I didn't read the GUI. You need to copy the

(?:\"authorizationCode)(?:\"\s?:\s?\")(.*)(?:\")

into the relevant input form.

When completed, it works:

image