Erlandys / UE4LinuxLauncher

MIT License
85 stars 24 forks source link

Captcha BDA #29

Open gaborpapp opened 4 years ago

gaborpapp commented 4 years ago

I'm trying to follow the instructions how to pass the Captcha BDA test, but when I open the page from the browser there's no captcha requested, so there's no data to copy. Tried deleting cookies, incognito window, but no luck.

ben-mkiv commented 4 years ago

The login process with captcha BDA is apparently broken, my advice is to enable TwoFactor Auth in your Epic Account (which sends you an numeric code as email every time you login) then you should be able to login.

mikeseese commented 4 years ago

@ben-mkiv even with 2FA, I get requested to put in captcha now

However, for the CLI tool I'm making, here's the approach I'm using to solve captcha:

In the POST request to https://www.epicgames.com/id/api/login, along with email and password, there is a captcha field in the JSON request payload. The value of that captcha field just needs to be the value users get when they navigate to https://funcaptcha.com/fc/api/nojs/?pkey=37D033EB-6489-3763-2AE1-A228C04103F5 (that pkey is Epic's current public api for Arkose)

So you can just ask users to always provide this field before logging in (or failing and then retrying with the field)

This is the UX i'm going for:

image

Anyway, just thought I'd put this here as one dev to another. Hope you get a working solution!

ben-mkiv commented 4 years ago

Thanks for your suggestion which seems to work, some feedback if it works for others is appreciated

There's my latest build https://github.com/ben-mkiv/UE4LinuxLauncher/tree/develop/Compiled

Please be aware that this build contains some changes to the current official release, as i've added image caching for faster browsing through the library and the ability to scale up the window (which sometimes glitches, but switching tabs to library and back to owned assets does fix it on runtime)

sparrowme commented 4 years ago

Pasting code into the Captcha Required dialog and clicking confirm button causes dialog to disappear briefly and then pop back up - as if the code is not accepted.

ben-mkiv commented 4 years ago

Pasting code into the Captcha Required dialog and clicking confirm button causes dialog to disappear briefly and then pop back up - as if the code is not accepted.

did the login work at that point or not?

renexdev commented 4 years ago

Hi @ben-mkiv , I've tried the develop branch version and I resolve the captcha in the browser, that gives me 7865f3836bfe34390.2574130401|r=us-east-1 I paste into the Captcha required dialog windows and then confirm, but the captcha windows appears again. Do you have any clue of what I can doing wrong? Thanks

ben-mkiv commented 4 years ago

@renexdev just tried it and it seems that the login procedure is broken again... Might look into this later. But if you want a reliable alternative my advice is to get Lutris (which is a wrapper for wine) and install the epic windows launcher which did work without any flaws for me in the last months

renexdev commented 4 years ago

Thanks @ben-mkiv for the quick response and for trying to solve this problem, I'll give a try.

sparrowme commented 4 years ago

Pasting code into the Captcha Required dialog and clicking confirm button causes dialog to disappear briefly and then pop back up - as if the code is not accepted.

Sorry just getting back to this. No it does not log in. Tried again today. The Captcha dialog just opens again after clicking confirm like it it didn't accept what I entered/pasted... image

kihaki commented 3 years ago

Experiencing the same issues today, with the current develop version

ben-mkiv commented 3 years ago

idk what is wrong and i've spent too much time trying to figure it out, end of day they gonna change something again and we have to fix it in the future again.

my advice is still the lutris/wine way:

that way you are able to download and add assets to your projects without moving files around

kihaki commented 3 years ago

I think you are 100 percent correct. I am in fact downloading the engine in lutris right now. The only downside to this approach is the engine occupying about 12gigs of harddrive space without need, but that's a price I am willing to pay.

Thanks for the symlink, that is a great simplification!

ben-mkiv commented 3 years ago

you don't have to install the engine in order to access assets, the launcher will detect your projects if you add the symlink, then you can choose for which project and unreal version you want to download the asset

kihaki commented 3 years ago

I have some trouble with the launcher detecting my projects.. seems like it needs some time or some trigger that I haven't found yet. Thanks for the tip with the engine.

ben-mkiv commented 3 years ago

If you use lutris it might have been installed to another path, check if ~/Games/epic-games-store/drive_c/users/USERNAME/My Documents exists, and put the symlink in there, too (change the username in the path obviously ;))

dj--alex commented 3 years ago

Cannot pass Captcha

Epic dont want Linux user buying anythere in Marketplace. Maybe Epic want Linux user recommend bittorrent?