← Back to Upcase

Possible to get the code for creating the oauth integration for this board


(Jonathan twaddell) #1

I’ve been following the progression of discourse and was wondering if it was possible to get the code for implementing OAuth for discourse. It’s something I’ve thought about doing but don’t have much experience with the gems in question. The board is open-source after all :wink:


(Paul Morganthall) #2

That would be super-fantastic. My app currently uses https://github.com/gitt/forum_monster (not an engine). This gives single sign-on, but the system is pretty basic. I’ve also tried Forem (engine) several times. Better integration, but the forum interaction suffers from all the problems of “80’s forum software” – the stuff that Jeff Atwood talked about solving on a recent episode of The Changelog.

Discourse looks and works so much better. I’m ready to switch once I can share login info.


(Ben Orenstein) #3

I think we might be able to do that. Let me confirm and get back to you.

By the way, our long term plan is to contribute our code back to Discourse, but we wanted to be sure we were actually going to use it first.


(Jonathan twaddell) #4

Thx Ben, I think that would be a huge plus for discourse project as several people have requested it. I suspect there’s probably a bit of custom stuff for handling how thoughtbot does it so not sure if it would be full PR to the code or maybe a gist / screencast. I think it would be great PR (public relations not pull request) for thoughtbot Prime too.


(Jonathan twaddell) #5

@benorenstein wanted to see if any update on this? I think it would be a huge plus for discourse community!


(Ben Orenstein) #6

Yes, actually. We’ve decided to open-source our code.

There’s one blocker, which is us getting on the latest version of Discourse before we release. I hope to tackle that next Friday.

Thanks for the reminder!


(Jonathan twaddell) #7

thx for update - would have asked you in AMA about it :slight_smile:


(Ben Orenstein) #8

No problem.

Still hoping to get this out soon, but the time I’d hoped to spend on Friday is rapidly getting filled up. It may be another week or two. Sorry!


(Jonathan twaddell) #9

Ok :frowning:

would be great to get out to the community.


(Ben Orenstein) #10

The good news is that the Discourse team are now all Prime members!

We’re going to be sharing the details of our changes with them. They seem open to feeding stuff back into master so that hacks like ours won’t be necessary in the future.


(Jonathan twaddell) #11

Thx @benorenstein and @cpytel Great to hear! IMHO, a solid OAuth integration would be the biggest PR for Discourse in terms of user appreciation.


(Cory Gwin) #12

I am also interested in this implementation. From what I can see it looks like you are using the doorkeeper gem as a provider.

I also found this thread on discourse that seems to outline the oauth integration on the discourse side https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717