Steam Authentication & Integration


(Morell) #1

What would you like done?
Steam integration like this: Steam Authentication & Integration | XenForo community (games stats not necessary).

  • I need to be able to associate a steam account with a discourse account, like this:

  • Login with steam (save steamID64 or something like this)
  • Steam badge on post or profile:

  • Xenforo steam auth importer to discourse.

What is your budget, in $ USD that you can offer for this task?
Open to negotiation.


(Jay Pfaffman) #2

There is a steam plugin that looks like it’ll meet your needs. It does not get an email address from steam (as Steam won’t provide it), but it will pull over avatars.


(Morell) #3

This plugin is a little useless, you can’t add a steam account on an existing discourse account, and you can’t see the steam profile of a discourse user. And you can’t import steam auth from other forum CMS.


(Jay Pfaffman) #4

@david, does Chatroom Integration Plugin (discourse-chat-integration) have hooks that could help here?

Once such a plugin exists, adding support for it to whatever forum you want to come from would be a separate task.


(David Taylor) #5

Don’t think so - discourse-chat-integration has stuff for sending notifications to group chat systems, but nothing that would help with associating user accounts.


(Morell) #6

But this is a big limitation right? All other forum systems have this option with facebook, twitter, google+, etc… This option is very important for my community or other game community. Some players use steam auth and a temp mail for register. Or maybe if a player steal a steam account of another user, discourse user can’t delete the token.


(Jay Pfaffman) #7

Yes. And from what I’ve read (and it appears that you’ve read it too), it’s non-trivial and will take changes to core. I’m not much of a plugin developer, but my guess is that your best bet will be to become a business customer and pay for a year’s hosting up front.


(Leo McArdle) #8

To do this with the authentication methods provided in core, sure - but for Steam I’m relatively confident you could just extend discourse-steam-login. Here’s how I’d go about it (if I had the time):

  • add a “associate with steam account” button in user preferences with a plugin outlet
  • link it to a plugin-controlled server side route
  • this route handles authenticating the user with steam, fetching the steam user id, and associating it with the user in discourse like so:
    ::PluginStore.set('steam', "steam_uid_#{data[:steam_uid]}", {user_id: user.id })
  • now a user can authenticate using whatever method they’re currently logged in with, or steam, and be logged into the same account

Plugin outlets would come to the rescue here again. Difficult to go into the specifics with no knowledge of what data from Steam you want to show in Discourse, and how the Steam API works. Might be possible entirely client side, might require a small server side piece.

As @pfaffman says, this wouldn’t be part of the plugin, but an importer script.


(Jay Pfaffman) #9

Well, @LeoMcA, if you do the plugin. I’ll do the importer. :slight_smile:


(Morell) #10

I’m working on a new version of importer: discourse/xenforo.rb at bac2e2bfea68fd0c8f082b720f43dabfc17d5d60 · JMorell/discourse · GitHub


(Morell) #11

Something new? We need this modification…


(system) #12

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.