Replies: 6 comments 32 replies
-
At a glace of the docs yes it should be possible to add Steam as a custom provider, even if it doesn't support OpenID! It would be great to add as a built-in provider. It seems it returns ID, name and avatar in a fairly conventional way, but I think possibly not email - which isn't a problem and just means they won't be able to use email as a fallback to sign in. There isn't a built in way to link them without doing this, though if you find it easier, you could create your own database table to store this info against the Users ID, and create a custom API endpoint that accesses the Users session (and look up the User ID from the session secure) and then returns information from that table, using the User ID as a key. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue and unfortunately this library does not support OpenID 2.0. I forked this library, added a new |
Beta Was this translation helpful? Give feedback.
-
There will be no word from Steam/Valve about updating their implementation. Valve is pretty notorious for leaving external APIs and things to get very stale unless it affects their internal team and they have a good track record of of not announcing anything (make no promises). SteamCMD is an example of their CLI where interacting with it programmatically is really nuanced and problematic. I would love to see a Steam provider in NextAuth. For more than just SSO it lets you validate a steam user id which has applications for any game that uses steam networking. That means if you want to make a website that interacts with a game server this would be the way to go whether you're a game dev or someone hosting a custom game server or building custom mods for games and want to have a website display information from the game. |
Beta Was this translation helpful? Give feedback.
-
So I ended up on this thread and after sadly not finding a solution that would let me stay up to date with next-auth I ended up manufacturing what can only be referred to as a very hacky use of allowing custom request functions for oauth provider. It works for allowing a steam Login, although I don't know how safe it is. It does require an Advanced setup as it needs access to the request. `
} export default handler; HOST_NAME is something like https://www.example.com I Hope someone finds some use for this and I wholeheartedly hope support for steam is added natively to next auth in the future! |
Beta Was this translation helpful? Give feedback.
-
If Provider is not available now, I hope to see an informal example of steam docking to solve the urgent needs.👀 |
Beta Was this translation helpful? Give feedback.
-
This is still unsolved in both v4 and v5 (beta).
|
Beta Was this translation helpful? Give feedback.
-
Your question
Steam uses OpenID 2.0 (older than OpenID Connect) and apparently is not supported by this library, so is there any way to make it work? If it's there no way to do it, Can I update the next-auth session if I authorize the user outside next-auth?
What are you trying to do
I want to let clients sign in with their steam account.
Beta Was this translation helpful? Give feedback.
All reactions