How to add a Login with Steam button using PHP & Open ID

How to add a Login with Steam button using PHP & Open ID

Cindr

2 года назад

11,489 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Nemesis
Nemesis - 13.08.2023 20:45

Thanks for the tutorial. I followed all of it but when it didn't work (because of an error of my own, i processed the Steam response in a way that made it return valid false. I'm doing this in C# btw.) i found out you can do it much easier than you're doing in this video and in your blog.

Basically after the steam login and the initial data you get back from Steam, all you have to do in that data is set 'openid.mode' to 'check_authentication' and then perform a simple GET request to the /openid/login endpoint with all of the data in the query string. You don't have to do anything with string exploding, foreach looping, etc. Just change one entry in the Steam returned data, and then send the GET request. That's it. I also didn't have to do anything with specific headers for Steam like you did, but maybe C# does stuff about that by itself.

Ответить
Blue
Blue - 28.09.2023 19:33

Make one with vue! :)

Ответить
Dominik Helfenstein
Dominik Helfenstein - 27.08.2023 19:13

Thanks, way easier for me to understand it this way than using an npm package, even though I don't know php ^^

Ответить
Saqib Amin
Saqib Amin - 23.08.2023 01:33

The auth2.0 is now cleared by the steam So is there anyway to do this?

Ответить
LyMaNСihik
LyMaNСihik - 22.07.2023 03:04

404 Not Found

Ответить
freeWayy
freeWayy - 06.07.2023 21:31

i always get "Error" on the steam page

Ответить
maxoys45
maxoys45 - 27.06.2023 14:52

Does anyone know how you would achieve this with Node/express? The npm packages are very vague (and mostly not updated for years) and I can't get it working.

Ответить
João
João - 23.05.2023 21:12

Wow, that was really well explained. Why didn't they use OAuth like every body?

Ответить
Danté
Danté - 21.05.2023 06:04

super helpful, took me a bit of bouncing back between the source code and the video but ultimately this gave me a great deal of insight about openid in general and got me up and running with steam auth on my website, thanks so much!

Ответить
skoshd
skoshd - 24.04.2023 05:55

This tutorial is great, I’ve got to the point where I can get back the validation from Steam on login, but I get “is_valid:false”. I cannot figure out why at all. Any ideas? Or anything else I can tell you/share with you to give you any ideas why it might not be working?

Ответить
skoshd
skoshd - 23.04.2023 23:39

Thank you! I’m making a website using NextJS and have been doing days of research trying to get Steam OpenID login working. None of the newer libraries work with Steam login because Steam is using an older spec of OpenID. Yours is the first video I’ve found that explains what I need to understand the login process and manually perform it (without libraries)

Ответить
Winterr#4077
Winterr#4077 - 20.04.2023 21:43

a

Ответить
Juan José Ruiz Marmolejo
Juan José Ruiz Marmolejo - 18.04.2023 02:39

With steam OpenID can i get inventory information? Just because i want to create a skin trade website

Ответить
Lukas
Lukas - 28.03.2023 19:07

For some reason it stopped displaying the profile picture and username. I haven't touched the code is there any reason for this?

Ответить
Matt Cesar
Matt Cesar - 09.03.2023 06:14

[FIXED-SEE BELOW]
hey, nice tutorial! when im on the steam login page and click login, i get the text "error" above my profile icon.. note ive inputted my api key in process-apenid.php

could the error im getting be becuase the domain im using doesnt have an ssl cert?


First, i forgot to add my domain in the init
Then i added the buffering to the login processor, then i removed the echo statements above the header dashboard, otherwise dashboard.php wouldn't resolve.

Ответить
fishyy
fishyy - 28.02.2023 07:31

I end up with a Steam only supports OpenID 2.0 which is odd because its all on 2.0 any clue why?

Ответить
Hakan Yıldız
Hakan Yıldız - 06.01.2023 23:52

WHY THE FCKN OPENID?

Ответить
Patrik Bede
Patrik Bede - 01.12.2022 22:14

Hi! Can you help please. It was working yesterday but i think i messed something up. When I click login on steam, i get "error" as a message. When I do it on the hosting machine itself it works perfectly. The return value is reachable from the client.

Ответить
GamesUKStudios
GamesUKStudios - 14.10.2022 13:29

is they away of validating if they got a particular game in the list I like to know can't wait for more videos like this subscribed could you do a link to another account like twitch login

Ответить
WHiP
WHiP - 17.09.2022 20:04

Thanks for this video, I was trying to grasp the idea and replicated it using react+express. I also didnt know there's this step to validate the open id handler back to steam's endpoint, now I do.

Ответить