Jump to content
McKay Development

Steam Auth on different domain


Recommended Posts


this question is not related to steam packages but still related to the steam so I hope I can still ask here about it. I noticed that all steam websites are using different domain in which they authenticate user and then redirect him back to main domain. What is best approach to do this? My idea was to send users from site1 to site2 which redirect user automatically to steam auth and then from steam redirect user directly back to site1 but this is showing me error on steam. Just written text ERROR nothing more so I have no idea why it doesn't work. I am doing it right or is there better approach to this? Another idea I had is to redirect user back from steam to site2 and with nginx redirect this request back to site1 along with autheticated cookies, but this doesn't work for me as well since cookies are authenticated just for site2. Can someone give me a hint how to do this? I will find details myself I just need someone to explain me general approach how to do this. 
Thank you!

Link to comment
Share on other sites

These aren't distinct domains; they're subdomains / wildcards of the main domain. If you set cookies for the main domain, all subdomains will be able to access those cookies.

edit sorry I mean store.steamcommunity and steamcommunity and I forgot about steampowered :D

check SSO https://stackoverflow.com/questions/43631581/how-to-do-single-sign-on-with-nodejs


Edited by 4049_1572836826
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...