It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
pippo-san: Now, for some reason, the guys at playnite are having the same issue, and they discovered that pressing "Trouble with login?" and then pressing the arrow button (previous page), will allow you to continue with the login, even with two-step autentication.

The long used method of gaining the npsso key is no longer needed, but if you are still having issues you can go with the old one ;)

source: https://github.com/XenorPLxx/playnite-library-psn/issues/5#issuecomment-1268745292
thats not working for me it seems.
avatar
tszcheetah: To use the browser work-around with the current version of the plugin (0.34):

1. Quit GOG Galaxy completely.

2. In your browser log in at store.playstation.com, then go to https://ca.account.sony.com/api/v1/ssocookie and copy the npsso value.

3. Open C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py in a text editor.

4. Replace line 52 ("return NextStep("web_session", AUTH_PARAMS)" with the following line (make sure to get the indentation correct: there's 12 spaces in front of the line):

stored_cookies = {"npsso": "<paste npsso value from browser here>"}

This line follows the "if not stored_cookies:" line on line 51

5. Save the file, restart Galaxy

6. Go to the settings and reconnect the PSN plugin
avatar
Xadro: Just tried this and it still works, you just need to disconnect an re-connect once or twice to get it to work.

This is the full block of code in plugin.py i am using now with Galaxy 2.0.64 latest version as of 23/05/2023 with plugin version 0.35.0.0

async def authenticate(self, stored_credentials=None):
stored_cookies = stored_credentials.get("cookies") if stored_credentials else None
if not stored_cookies:
stored_cookies = {"npsso": "HERECOMESTHATLONGSTRINGFROMTHATURL"}

auth_info = await self._do_auth(stored_cookies)
return auth_info
avatar
Xadro:
Not sure if they removed the PSN plugin from the files, but I was not able to locate it in GOG files (see screenshot). Not sure what to do as I am unfamiliar with Python or computer coding in general. The only plugins listed if for Xbox and Epic Games which seem to be the only official ones.
Attachments:
It has plugin version 0.35, I'm trying to do it from the instructions, but I don't know where to insert this value {"npsso" which line, maybe someone will insert a scrin how the file should look like after the change. cannot find the value of stored_cookies =
I also often get a known error after playing with puzzles or sounds:
A connection to the server could not be established.
(18.3fbd7b5c.1688931831.20e386fb . gog 2.067
Post edited July 10, 2023 by AndrzejY8U
avatar
DarkOnigiri: I followed this, changing a little the step 4:
async def authenticate(self, stored_credentials=None):
stored_cookies = {"npsso":"npsso from step 2"}
auth_info = await self._do_auth(stored_cookies)
return auth_info

And worked... I'm using GOG 2.0.51.86 with PlayStation 0.35.
avatar
trissbestgril: Incredible! After like a year of my PSN not connecting to my GOG, this one solved it. Thanks a lot!
Same, Ive been struggling to connect for over a year, tszcheetahs fix finally did the trick. Kudos to tszcheetah!
avatar
tszcheetah: To use the browser work-around with the current version of the plugin (0.34):

1. Quit GOG Galaxy completely.

2. In your browser log in at store.playstation.com, then go to https://ca.account.sony.com/api/v1/ssocookie and copy the npsso value.

3. Open C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py in a text editor.

4. Replace line 52 ("return NextStep("web_session", AUTH_PARAMS)" with the following line (make sure to get the indentation correct: there's 12 spaces in front of the line):

stored_cookies = {"npsso": "<paste npsso value from browser here>"}

This line follows the "if not stored_cookies:" line on line 51

5. Save the file, restart Galaxy

6. Go to the settings and reconnect the PSN plugin
This fixed the issue. Only difference was Step 4 was on line 51 for me. (I used NotePad++) GOG now recognizes my PSN account. Amazing!
And its broken again. I think the last 2 GOG updates broke the config because it was working fine. Keeps stating "Lost Connection" after this fix.


Edit - Broke because of new PSN Policy & Privacy update. After accepting the new Policy, was able to relink with the same fix
Post edited August 25, 2023 by BrokeMyNinja
avatar
BrokeMyNinja: And its broken again. I think the last 2 GOG updates broke the config because it was working fine. Keeps stating "Lost Connection" after this fix.

Edit - Broke because of new PSN Policy & Privacy update. After accepting the new Policy, was able to relink with the same fix
It's broken for me too. Fix worked and now it stays offline even after reconnection. How do you accept the new PSN policy? There is no option for me.
avatar
BrokeMyNinja: And its broken again. I think the last 2 GOG updates broke the config because it was working fine. Keeps stating "Lost Connection" after this fix.

Edit - Broke because of new PSN Policy & Privacy update. After accepting the new Policy, was able to relink with the same fix
avatar
MrAngryBates: It's broken for me too. Fix worked and now it stays offline even after reconnection. How do you accept the new PSN policy? There is no option for me.
You have to log into your primary PlayStation Console and a Notification or Policy/Privacy EULA should pop up. Once I accepted and then went to resync with GOG it worked.
This ridiculous that we keep have to manual fix this. Either GoG start natively support this and keep this stuff working, Or I just uninstall it. I only use to keep track of all my game across platforms ( and i know there other programs that do the same there less frustrating) so i know what i have and where. but at this point it not worth frustration.

GoG galaxy would of died already if wasnt for people keep these plug ins updated. which are slowly dying

PSN keep dropping the connect blizzard keep loging out ubisoft keep loging out, it dont even show all game i actual have there. only thing that works properly is GOG and Epicgames, Xbox live everything else very much miss more then hit in working department

Since it was launched what 3+ year ago it still in beta and actual updates are few and far between, main selling point for it dont work properly cause they them selves dont official support it and rely on other to do work for them. like said if wasnt for them galaxy client would be freaking dead.

The promise of what Galaxy was ment be and actual 2 different thing. and main selling point just dont work right only 3 offical implementations work right
Post edited September 06, 2023 by tsunami2311
avatar
tsunami2311: This ridiculous that we keep have to manual fix this. Either GoG start natively support this and keep this stuff working, Or I just uninstall it. I only use to keep track of all my game across platforms ( and i know there other programs that do the same there less frustrating) so i know what i have and where. but at this point it not worth frustration.

GoG galaxy would of died already if wasnt for people keep these plug ins updated. which are slowly dying
+1
avatar
tsunami2311: The promise of what Galaxy was ment be and actual 2 different thing. and main selling point just dont work right only 3 offical implementations work right
Unfortunately I have to agree. It's a failure and a mess. And the lack of any communication from the GoG team is frankly disgusting.
Post edited September 21, 2023 by MrAngryBates
avatar
MrAngryBates: It's broken for me too. Fix worked and now it stays offline even after reconnection. How do you accept the new PSN policy? There is no option for me.
avatar
BrokeMyNinja: You have to log into your primary PlayStation Console and a Notification or Policy/Privacy EULA should pop up. Once I accepted and then went to resync with GOG it worked.
Hi, how did you receive a Notification or Policy/Privacy EULA? I don't see it, I've logged on all sony websites and PS5 as well have checked everything nothing has pop-up, it's still offline.
This is happening to me as well ; ;
me too
avatar
tsunami2311: This ridiculous that we keep have to manual fix this. Either GoG start natively support this and keep this stuff working, Or I just uninstall it. I only use to keep track of all my game across platforms ( and i know there other programs that do the same there less frustrating) so i know what i have and where. but at this point it not worth frustration.

GoG galaxy would of died already if wasnt for people keep these plug ins updated. which are slowly dying

PSN keep dropping the connect blizzard keep loging out ubisoft keep loging out, it dont even show all game i actual have there. only thing that works properly is GOG and Epicgames, Xbox live everything else very much miss more then hit in working department

Since it was launched what 3+ year ago it still in beta and actual updates are few and far between, main selling point for it dont work properly cause they them selves dont official support it and rely on other to do work for them. like said if wasnt for them galaxy client would be freaking dead.

The promise of what Galaxy was ment be and actual 2 different thing. and main selling point just dont work right only 3 offical implementations work right
The problem is rather Sony or other third parties are not willing to cooperate. The fact that Sony or Valve are constantly changing their APIs speaks for itself and doesn't exactly show willingness to have an official integration with GOG (or other providers).

Other services that use Profiletracking for PSN, for example, have been struggling with the same problem for years and it's not easy to keep up because Sony keeps increasing the complexity. For this reason, some developers just give up.