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

×
high rated
Hi All,

@Nephilim983 I have edited your code. On my system the plugin now works as intended, closing the window after logon, then performing the sync operation. This is verified with several close / opens of Galaxy.

PLEASE make a backup of your file before editing! I usually just add a .BAK extension.

The forum will Not stop hypertexting links automatically so I'm trying this workaround. You are replacing the line starting at the two forward slashes. You can copy/paste the lines if you wish.

Change the corresponding data in Line45 to read:
//www.ea.com/ea-play/views/login.html",

and Line 46 to read:
//www.ea.com/ea-play/views/login\.html.*"

I only changed lines 45 and 46 from what Nephilim had provided. I got lucky. :o)

Will everyone please post your results so this can be tweaked if needed by an actual coder if need be.
I hope this works for everyone!
Post edited September 21, 2023 by Fuzzilla01
avatar
Fuzzilla01: Hi All,

@Nephilim983 I have edited your code. On my system the plugin now works as intended, closing the window after logon, then performing the sync operation. This is verified with several close / opens of Galaxy.

PLEASE make a backup of your file before editing! I usually just add a .BAK extension.

Here is the code from Lines 38 thru 47:

LOCAL_GAMES_CACHE_VALID_PERIOD = 5
AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play/views/login.html",
"end_uri_regex": r"^[url=https://www.ea.com/ea-play/views/login\.html]https://www.ea.com/ea-play/views/login\.html[/url].*"
}

I recommend changing only the altered data, as the forum has removed the indentions from the lines. I only changed lines 45 and 46 from what Nephilim had provided. I got lucky. :o)

Will everyone please post your results so this can be tweaked if needed by an actual coder if need be.
I hope this works for everyone!
Awesome, I knew someone would be able to help out.
avatar
Fuzzilla01: Hi All,

@Nephilim983 I have edited your code. On my system the plugin now works as intended, closing the window after logon, then performing the sync operation. This is verified with several close / opens of Galaxy.

PLEASE make a backup of your file before editing! I usually just add a .BAK extension.

Here is the code from Lines 38 thru 47:

LOCAL_GAMES_CACHE_VALID_PERIOD = 5
AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play/views/login.html",
"end_uri_regex": r"^[url=https://www.ea.com/ea-play/views/login\.html]https://www.ea.com/ea-play/views/login\.html[/url].*"
}

I recommend changing only the altered data, as the forum has removed the indentions from the lines. I only changed lines 45 and 46 from what Nephilim had provided. I got lucky. :o)

Will everyone please post your results so this can be tweaked if needed by an actual coder if need be.
I hope this works for everyone!
Unfortunately, it doesn't seem to work for me, I get 404 error on the EA window pop up. And when i try to navigate around it, it still won't close the window. Also I only see an option to join EA Play. not a logo to click and close it.
avatar
Fuzzilla01: Hi All,

@Nephilim983 I have edited your code. On my system the plugin now works as intended, closing the window after logon, then performing the sync operation. This is verified with several close / opens of Galaxy.

PLEASE make a backup of your file before editing! I usually just add a .BAK extension.

Here is the code from Lines 38 thru 47:

LOCAL_GAMES_CACHE_VALID_PERIOD = 5
AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play/views/login.html",
"end_uri_regex": r"^[url=https://www.ea.com/ea-play/views/login\.html]https://www.ea.com/ea-play/views/login\.html[/url].*"
}

I recommend changing only the altered data, as the forum has removed the indentions from the lines. I only changed lines 45 and 46 from what Nephilim had provided. I got lucky. :o)

Will everyone please post your results so this can be tweaked if needed by an actual coder if need be.
I hope this works for everyone!
avatar
letobrick: Unfortunately, it doesn't seem to work for me, I get 404 error on the EA window pop up. And when i try to navigate around it, it still won't close the window. Also I only see an option to join EA Play. not a logo to click and close it.
I have rewritten the post to make it easier and to prevent the forum from adding url tags. That was the error. Check my post and give that a go.
avatar
letobrick: Unfortunately, it doesn't seem to work for me, I get 404 error on the EA window pop up. And when i try to navigate around it, it still won't close the window. Also I only see an option to join EA Play. not a logo to click and close it.
avatar
Fuzzilla01: I have rewritten the post to make it easier and to prevent the forum from adding url tags. That was the error. Check my post and give that a go.
Thank you kindly! Got it working now :)
avatar
Fuzzilla01: Hi All,

@Nephilim983 I have edited your code. On my system the plugin now works as intended, closing the window after logon, then performing the sync operation. This is verified with several close / opens of Galaxy.

PLEASE make a backup of your file before editing! I usually just add a .BAK extension.

The forum will Not stop hypertexting links automatically so I'm trying this workaround. You are replacing the line starting at the two forward slashes. You can copy/paste the lines if you wish.

Change the corresponding data in Line45 to read:
//www.ea.com/ea-play/views/login.html",

and Line 46 to read:
//www.ea.com/ea-play/views/login\.html.*"

I only changed lines 45 and 46 from what Nephilim had provided. I got lucky. :o)

Will everyone please post your results so this can be tweaked if needed by an actual coder if need be.
I hope this works for everyone!
Not working:

LOCAL_GAMES_CACHE_VALID_PERIOD = 5
AUTH_PARAMS = {
"window_title": "Login to Origin",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=ORIGIN_SPA_ID&display=originXWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play/views/login.html",
"end_uri_regex": r"^[url=https://www.ea.com/ea-play/views/login\.html]https://www.ea.com/ea-play/views/login\.html[/url].*"

Results in this error:

{"error":"invalid_request","error_description":"redirect_uri is invalid","code":102111}

This line "&redirect_uri=https://www.ea.com/ea-play/views/login.html", directs to a 404 error page

Cut and pasting the ENTIRE code per Nephilim983 post actually worked.
Post edited September 24, 2023 by Radakill
avatar
Nephilim983: Ok, so I'm not a coder/programer but i managed to fix it for myself by trial and error. t's not a perfect streamlined solution so do it at your own risk.

Open Users/"User name"/AppData/Local/GOG.com/Galaxy/plugins/installed/origin_xxxxx/plugin.py in Notepad. Replace lines 38-47 with following:

AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex": "https://www.ea.com/ea-play"
}

This will allow you to log in with a small caveat, Login window won't close. To complete login, just click on EA Play logo at top of the window page. The window will close, and the connection will be established.

Let me know if this works for you or if you can fix my code to automatically close the login window. Good luck.
ended up changing your lines into this (not sure if formatting works on forum)

"start_uri": " "start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex": r"^[url=https://www\.ea\.com/ea-play]https://www\.ea\.com/ea-play[/url].*"
and this gave me the popup and then closed it after login in thx :D

EDIT.. so this forum seems to add stupid [url= parts that i dont know how to remove :S
Post edited September 25, 2023 by Thrashie
I decided to give Galaxy a try again and after doing the Steam plugin update to get that to work, the Origin one was next and even though these steps allowed me to see my EA library of games it does not actually recognize the EA games I had already installed like the Steam and Ubisoft plugins do.
avatar
Nephilim983: Let me know if this works for you or if you can fix my code to automatically close the login window. Good luck.
Very grateful for this trick, can't start my EA games through GOG anymore, but I'm just happy to see my library, so thank you.
high rated
avatar
Nephilim983: Ok, so I'm not a coder/programer but i managed to fix it for myself by trial and error. t's not a perfect streamlined solution so do it at your own risk.

Open Users/"User name"/AppData/Local/GOG.com/Galaxy/plugins/installed/origin_xxxxx/plugin.py in Notepad. Replace lines 38-47 with following:

AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex": "https://www.ea.com/ea-play"
}

This will allow you to log in with a small caveat, Login window won't close. To complete login, just click on EA Play logo at top of the window page. The window will close, and the connection will be established.

Let me know if this works for you or if you can fix my code to automatically close the login window. Good luck.
avatar
Thrashie: ended up changing your lines into this (not sure if formatting works on forum)

"start_uri": " "start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex": r"^[url=https://www\.ea\.com/ea-play]https://www\.ea\.com/ea-play[/url].*"
avatar
Thrashie: and this gave me the popup and then closed it after login in thx :D

EDIT.. so this forum seems to add stupid [url= parts that i dont know how to remove :S
I attached a screenshot of my plugin.py file with a working copy of the code. Hopefully that makes it easier for some people.

Essentially you just have to strip out the entire [url] sections.
Attachments:
pluginpy.png (26 Kb)
Post edited September 30, 2023 by MazokuRanma
avatar
Thrashie: ended up changing your lines into this (not sure if formatting works on forum)

and this gave me the popup and then closed it after login in thx :D

EDIT.. so this forum seems to add stupid [url= parts that i dont know how to remove :S
avatar
MazokuRanma: I attached a screenshot of my plugin.py file with a working copy of the code. Hopefully that makes it easier for some people.

Essentially you just have to strip out the entire [url] sections.
After modifying the code with your tweaks, this worked for me, thank you very much!
avatar
Thrashie: ended up changing your lines into this (not sure if formatting works on forum)

and this gave me the popup and then closed it after login in thx :D

EDIT.. so this forum seems to add stupid [url= parts that i dont know how to remove :S
avatar
MazokuRanma: I attached a screenshot of my plugin.py file with a working copy of the code. Hopefully that makes it easier for some people.

Essentially you just have to strip out the entire [url] sections.
Ultimately had to refer to this screenshot as well due to the inconsistencies and forum editing on other posts. This works for me too, thanks!
avatar
Nephilim983: Ok, so I'm not a coder/programer but i managed to fix it for myself by trial and error. t's not a perfect streamlined solution so do it at your own risk.

Open Users/"User name"/AppData/Local/GOG.com/Galaxy/plugins/installed/origin_xxxxx/plugin.py in Notepad. Replace lines 38-47 with following:

AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex": "https://www.ea.com/ea-play"
}

This will allow you to log in with a small caveat, Login window won't close. To complete login, just click on EA Play logo at top of the window page. The window will close, and the connection will be established.

Let me know if this works for you or if you can fix my code to automatically close the login window. Good luck.
This works. Thanks.
avatar
Thrashie: ended up changing your lines into this (not sure if formatting works on forum)

and this gave me the popup and then closed it after login in thx :D

EDIT.. so this forum seems to add stupid [url= parts that i dont know how to remove :S
avatar
MazokuRanma: I attached a screenshot of my plugin.py file with a working copy of the code. Hopefully that makes it easier for some people.

Essentially you just have to strip out the entire [url] sections.
+1.

Copying the code from the screenshotdoes the trick!
avatar
Nephilim983: Ok, so I'm not a coder/programer but i managed to fix it for myself by trial and error. t's not a perfect streamlined solution so do it at your own risk.

Open Users/"User name"/AppData/Local/GOG.com/Galaxy/plugins/installed/origin_xxxxx/plugin.py in Notepad. Replace lines 38-47 with following:

AUTH_PARAMS = {
"window_title": "Login to EA Play",
"window_width": 495 if is_windows() else 480,
"window_height": 746 if is_windows() else 708,
"start_uri": "https://accounts.ea.com/connect/auth"
"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login"
"&locale=en_US&release_type=prod"
"&redirect_uri=https://www.ea.com/ea-play",
"end_uri_regex": "https://www.ea.com/ea-play"
}

This will allow you to log in with a small caveat, Login window won't close. To complete login, just click on EA Play logo at top of the window page. The window will close, and the connection will be established.

Let me know if this works for you or if you can fix my code to automatically close the login window. Good luck.
avatar
Roigodx: This works. Thanks.
THANKS this worked for me as well!