Simple Machines Community Forum

SMF Development => Feature Requests => Topic started by: Jakobud on April 08, 2015, 04:50:46 PM

Title: OAuth SMF authentication for other websites?
Post by: Jakobud on April 08, 2015, 04:50:46 PM
I can't tell if this is a feature that SMF has or not. Lets say you have a website myforum.com that uses SMF and has a bunch of users.

Does SMF have any sort of OAuth authentication scheme setup where a 3rd party website coolwebsite.com could use OAuth and have users login to coolwebsite.com using their myforum.com credentials? Or a way for users oncoolwebsite.com to link their account to their account on myforum.com?

This is similar to what Google/Facebook/Twitter/etc offers, where 3rd party websites can request users to login using their Google/Facebook/Twitter/etc logins.

Does SMF have functionality like this or are there plugins for it or anything like that?
Title: Re: OAuth SMF authentication for other websites?
Post by: Illori on April 08, 2015, 06:42:56 PM
2.0 has openID, this has been removed in 2.1 though.

if you want to log in using any of those websites you need a mod to do so. it will not be part of SMF core.
Title: Re: OAuth SMF authentication for other websites?
Post by: margarett on April 08, 2015, 07:14:05 PM
It is, however, possible to use SMF to serve that authentication to your other website with SMF's REST API
http://www.simplemachines.org/community/index.php?topic=458832.0
Title: Re: OAuth SMF authentication for other websites?
Post by: Jakobud on April 15, 2015, 01:55:11 PM
Quote from: margarett on April 08, 2015, 07:14:05 PM
It is, however, possible to use SMF to serve that authentication to your other website with SMF's REST API
http://www.simplemachines.org/community/index.php?topic=458832.0

So one could make a REST request using a username/password combination to the forum website's API and get a true/false return?
Title: Re: OAuth SMF authentication for other websites?
Post by: margarett on April 15, 2015, 02:13:41 PM
I'm not totally sure about the details but it has to be something like that, yes ;)