[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!
-
plugins - filter:admin.header.build (pre-existing hook) now allows yo… · NodeBB/NodeBB@c16f04b
Node.js based forum software built for the modern web - plugins - filter:admin.header.build (pre-existing hook) now allows yo… · NodeBB/NodeBB@c16f04b
GitHub (github.com)
plugins - added filter:auth.init hook to add additional login strateg… · NodeBB/NodeBB@51b38c4
Node.js based forum software built for the modern web - plugins - added filter:auth.init hook to add additional login strateg… · NodeBB/NodeBB@51b38c4
GitHub (github.com)
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.