Skip to content
  • 0 Votes
    14 Posts
    367 Views
    ww9riversW

    @baris Thank you for the quick fix! It works now.

  • 2 Votes
    4 Posts
    324 Views
    julianJ

    Lastly, keep in mind that sso-oauth is not deprecated, and will still be maintained. It's still a reference implementation for OAuth2 providers that follow the standard loosely. Also it happens to be the only OAuth 1 reference implementation.

  • 0 Votes
    12 Posts
    1k Views
    K

    Thanks a lot everybody for the contributions to this discussion!

    Your recommendations were all useful to better understanding the plugin and finally realise a prototype against 10Duke.

    Cheers, R

  • 2 Votes
    1 Posts
    899 Views
    mooredsM

    Hiya,

    I wrote a tutorial about setting up single sign-on for NodeBB.

    Full disclosure, I wrote it using my employers OAuth server (FusionAuth) as the user identity provider.

    But the plugin and steps should work with any OAuth server. The plugin is here: https://github.com/FusionAuth/nodebb-plugin-fusionauth-oidc

  • 0 Votes
    1 Posts
    314 Views
    M

    Hi!

    I wrote a plugin for OpenLDAP.
    It overrides the default login and falls back to local login if the user is not found in LDAP.
    It also creates all groups found in LDAP and automatically joins the user into them.
    Using it as an alternative login is not implemented as I couldn't figure it out quick enough. It should be easy to do - feel free to add a pull request.

    The source is on github. Pull requests are welcome!
    Please be kind, my JavaScript skills are limited.

  • 0 Votes
    3 Posts
    839 Views
    GeferonG

    I think I managed to find the solution to your issue @gorgiselkov
    I'm guessing you're using IIS but if not it might help as well.
    Here: https://community.nodebb.org/post/72229

  • 1 Votes
    9 Posts
    3k Views
    Nethrah AyyaswamiN

    @khalid-kunji did u get this working? I am getting the same error.

  • 0 Votes
    1 Posts
    1k Views
    remydevR

    Hello,

    I'm working on a SSO integration from a django SSO.
    In my django project i add 'oauth2_provider'

    Welcome to Django OAuth Toolkit Documentation — Django OAuth Toolkit 2.3.0 documentation

    favicon

    (django-oauth-toolkit.readthedocs.io)

    And i get this :

    0_1512387850634_ad046269-f481-410a-bc24-2ca89b39f6dd-image.png

    On the nodebb side, I started from the plugin
    https://github.com/julianlam/nodebb-plugin-sso-oauth

    Which I modified as a result:

    The config.json file

    "oauth": { "id": "rs2yEx7aqrj7ZIgVRC9IFL7p0DyIjQwWPST4BqVW", "secret": "6A678EDFqAYtl0sALS5rqk2mfhlBQi0HIgoGH5mPaeIpnZGni8BdOFiv" },

    and in the library.js) i change this lignes

    var constants = Object.freeze({ type: 'oauth2', // Either 'oauth' or 'oauth2' name: 'nodebb_django', // Something unique to your OAuth provider in lowercase, like "github", or "nodebb" oauth: { requestTokenURL: '', accessTokenURL: '', userAuthorizationURL: '', consumerKey: nconf.get('oauth:key'), // don't change this line consumerSecret: nconf.get('oauth:secret'), // don't change this line }, oauth2: { authorizationURL: 'https://beta.esprit-bourse.com/oauth/authorize', tokenURL: 'https://beta.esprit-bourse.com/oauth/token', clientID: nconf.get('oauth:id'), // don't change this line clientSecret: nconf.get('oauth:secret'), // don't change this line }, userRoute: '' // This is the address to your app's "user profile" API endpoint (expects JSON) }),

    I've never programmed in JS nodes, so I don't really know what to do, and I don't understand all the code.

    I may have to change the information as indicated. Update profile information (around line 137 of library. js). But there is no user account to use the Oauth system

    After a git clone, i can't enable the plugin so i think there is something else to change.

    if someone can help me I will document everything for the link Oauth django/nodeBB. Otherwise, I'll keep the site and forum separate.

  • 0 Votes
    3 Posts
    2k Views
    A

    Is there any progress on this, as I am also interested in using Drupal with NodeBB.

  • 0 Votes
    7 Posts
    4k Views
    barisB

    @livey0u It is just a requirejs module so just require it.

    require(['components'], function (components) { components.get('user/logout').off('click').on('click', function() { // your custom behaviour here }); });
  • 0 Votes
    1 Posts
    1k Views
    kacemlightK

    After uptgarding (reinstallation) of nodebb, this plugins return error and don't work at all.
    After app starting, I got this warn message:

    7/11 12:20 [31705] - warn: [meta/dependencies] Bundled plugin nodebb-plugin-dbsearch not found, skipping dependency check.
    17/11 12:21 [31705] - warn: [plugins/nodebb-plugin-sso-github] Hook filter:user.delete is deprecated, please use an alternative
    17/11 12:21 [31705] - warn: [plugins/nodebb-plugin-sso-google] Hook filter:user.delete is deprecated, please use an alternative
    17/11 12:21 [31705] - warn: [plugins/nodebb-plugin-sso-twitter] Hook filter:user.delete is deprecated, please use an alternative

    17/11 12:21 [31705] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.

    nodebb-plugin-imgur nodebb-plugin-sso-facebook nodebb-plugin-sso-github nodebb-plugin-sso-google nodebb-plugin-sso-twitter nodebb-plugin-composer-redactor nodebb-plugin-custom-pages nodebb-plugin-desktop-notifications nodebb-plugin-rss nodebb-plugin-youtube

    17/11 12:21 [31705] - info: [User-Invitations] Initializing User-Invitations...
    17/11 12:21 [31705] - info: [plugins/spam-be-gone] Settings loaded
    17/11 12:21 [31705] - info: [User-Invitations] Synced settings: defaultInvitations=10, restrictRegistration=0, invitedUsers=[], inviteGroup=registered-users
    17/11 12:21 [31705] - warn: [plugin/composer-redactor] Another composer plugin is active! Please disable all other composers.
    17/11 12:21 [31705] - info: NodeBB Ready
    17/11 12:21 [31705] - info: NodeBB is now listening on: 0.0.0.0:4567

    list itemWhen I try to login with Facebook, I got:
    L’URL fournie n’est pas autorisée par la configuration de l’application.: Une ou plusieurs URL fournies ne sont pas autorisées par les paramètres de l’application. Elle(s) doi(ven)t correspondre à l’URL du site ou du Canevas, ou le domaine doit être un sous-domaine de l’un des domaines de l’application.

    With googleplus:
    list item400. That’s an error.
    Error: redirect_uri_mismatch

    list itemWith twitter and github I get the same Error.

    With the ancien version of nodebb, all this sso login worked fine.

    Please can somone help me to resolve this problem ??

  • 2 Votes
    5 Posts
    3k Views
    S

    I apologize for such a dirty job.

  • 1 Votes
    4 Posts
    2k Views
    S

    🔥 😎

  • 0 Votes
    1 Posts
    1k Views
    B

    I've embedded the forum into the iframe of my website and am currently using Facebook SSO. However, whenever I try to log into Facebook, it redirects me to the Facebook page then to my nodebb website after signing in. Does anyone know how to make the Facebook SSO redirect to my website or have the FB login be a popup window?

  • 0 Votes
    6 Posts
    4k Views
    julianJ

    I'd add some client side code that checks for the cookie existing, and react (redirect) appropriately

  • 4 Votes
    4 Posts
    3k Views
    J

    Finaly managed to fix 502, needed to use node v4 instead of v6.

    Still having an issue with this plugin when i try to login :

    Registration Error int-steam-unexpected-error
  • 0 Votes
    1 Posts
    2k Views
    terfexT

    Hey has anyone looked into building a plugin that allows users to login with their Spiceworks account. Spiceworks have documented all the info required here on their Github site: https://spiceworks.github.io/developers.spiceworks.com//documentation/share/#login_with_spiceworks.

    With a 6 Million strong user base, this could be very handy.

  • 0 Votes
    2 Posts
    2k Views
    Wojciech LisikW

    In nodebb:

    Admin > Location & APIs > SSO > Twitter > Add new api token.

    In Twitter:

    (User menu > Settings > API > generate SSO.

  • 0 Votes
    7 Posts
    5k Views
    Macrow WillsonM

    @Macrow-Willson , ah setup: apache,debian,mod_proxy