tylerbrawl / Galaxy-Plugin-Rockstar

MIT License
71 stars 7 forks source link

Can't login to Social Club /w plugin #168

Open Hikyue opened 1 year ago

Hikyue commented 1 year ago

Code seems to be buggy. It looks like permission is denyied by some kind of instance.

Hikyue commented 1 year ago

image

when i try to login: I get mail i logged in but it dont let me in (see blackscreen loading picture). Next time i open GoG, it's still not connected.

osin commented 1 year ago

You should edit %LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\[ROCKSTAR_PLUGIN\const.py

Search for AUTH_PARAMS>start_uri and add at the end of the uri &returnUrl=/.

ex:

AUTH_PARAMS = {
    "window_title": "Login to Rockstar Games Social Club",
    "window_width": 700,
    "window_height": 600,
    "start_uri": "https://signin.rockstargames.com/connect/authorize/rsg?lang=en-US&returnUrl=/",
    "end_uri_regex": r"https://scapi.rockstargames.com/profile/getbasicprofile"
}
Hikyue commented 1 year ago

this small add of code makes it possible for admin to get access to my auth. Not want to give away my data.

joerg-nafcom commented 1 year ago
returnUrl=/

works, thanks! cheers!