[nodebb-plugin-sso-github] Github SSO plugin
-
Login or register to your NodeBB via GitHub. Hopefully this paves the way for a ton of other plugins: https://github.com/jaredhanson/passport/wiki/Strategies
Install via NPM:
npm install nodebb-plugin-sso-github
And then activate the plugin in the control panel as per usual. Don't forget to add your clientID and secret in the authentication panel.
More Info on Github
You'll need the latest code as of this commit 89c5d01efa6b948b67bcb4cd19a608da1bdf11cc or later for this plugin to work.
p.s. Are you planning on writing your own SSO plugin? Feel free to base it off this plugin and make sure you ping me if you run into any trouble Good luck!
-
https://github.com/designcreateplay/NodeBB/commit/c16f04bbcf376217d74dddd9d0ce39d6695836e9
https://github.com/designcreateplay/NodeBB/commit/51b38c4c55da11191bdffc01f74b3756d709f79c
these are the two hooks of importance for the above plugin
-
@psychobunny I’m new to NodeBB, and have just set up a forum. I’d like to use you plugin for GitHub auth, but have run into an issue:
When I click the save button, there’s no notification that it worked, and when I go back to the page, it seems to have gotten rid of my keys. I’ve tried restarting from the NodeBB dashboard and with rhc tools, but I haven’t gotten it to work.
After trying for a few times, I installed the google sso plugin and succeeded in getting Google auth working; it also removes the keys from the form, but it gives a save notification and seems to work.
Do you have any suggestions, or have I overlooked something ridiculously obvious?
Thanks!
-
@julian Ah, I don’t know why I didn’t think of that. When I go to the GitHub page under social authentication, I get
Uncaught TypeError: Cannot read property 'prepare' of undefined
fromgithub:208
This doesn’t appear on the google page. Line 208 of admin.tpl seem to berequire(['forum/admin/settings'], function(Settings) { Settings.prepare(); });
Also, on all pages (including the homepage of the forum) I get
Error during WebSocket handshake: Unexpected response code: 502
, but that doesn’t seem to be the issue.Thanks for your help.