Skip to content

Discord Login - OAuth2 - NodeBB

Solved General
32 4 14.1k 1
  • @phenomlab

    I need to add you as friend before I can invite 🙂

    UPDATE 🙂 Invited To Test App.

    wrote on last edited by
    #16

    @Sampo2910 Hmm - don’t see it in the teams section ?

  • @Sampo2910 Hmm - don’t see it in the teams section ?

    wrote on last edited by
    #17
  • wrote on last edited by
    #18

    @Sampo2910 Strange. Accepted it, but still can’t see it.

  • @Sampo2910 Strange. Accepted it, but still can’t see it.

    wrote on last edited by
    #19

    @phenomlab

    Can you try now. I had to put test mode on through main Discord application. Sorry. Forgot about that. 😞

  • @phenomlab

    Can you try now. I had to put test mode on through main Discord application. Sorry. Forgot about that. 😞

    wrote on last edited by
    #20

    @Sampo2910 Still nothing.

  • @Sampo2910 Still nothing.

    wrote on last edited by
    #21
  • wrote on last edited by
    #22

    @Sampo2910 I think you need to create a team ?

    003df796-6f5e-4ec2-9499-a98e3104d30b-image.png

  • @Sampo2910 I think you need to create a team ?

    003df796-6f5e-4ec2-9499-a98e3104d30b-image.png

    wrote on last edited by
    #23

    @phenomlab

    Done 🙂

    Good to know all this.

  • @phenomlab

    Done 🙂

    Good to know all this.

    wrote on last edited by
    #24

    @Sampo2910 Now you need to invite me - you probably need to enable 2FA for this also (for obvious security reasons)

    828eb967-a359-45ab-a052-3bcafa1c70e1-image.png

  • @Sampo2910 Now you need to invite me - you probably need to enable 2FA for this also (for obvious security reasons)

    828eb967-a359-45ab-a052-3bcafa1c70e1-image.png

    wrote on last edited by
    #25
  • wrote on last edited by
    #26

    @Sampo2910 Am in. Will create a new OAUTH app under this team.

  • wrote on last edited by
    #27

    @Sampo2910 Having issues with this. Can you let me know if your server is running NGINX, and if it is, can you please post the nginx.conf (obviously remove sensitive information)

  • @Sampo2910 Am in. Will create a new OAUTH app under this team.

    wrote on last edited by
    #28

    @phenomlab After checking in various places (including the nginx.conf file), the reason as to why this fails is because of the trailing / in the url within config.json. Now that we’ve removed that and restarted NodeBB, Discord OAUTH works as intended.

  • phenomlab phenomlab has marked this topic as solved on
  • @phenomlab After checking in various places (including the nginx.conf file), the reason as to why this fails is because of the trailing / in the url within config.json. Now that we’ve removed that and restarted NodeBB, Discord OAUTH works as intended.

    wrote on last edited by
    #29

    @phenomlab

    Thank you so much for your time. Very much appreciated.

  • wrote on last edited by
    #30

    Hi guys. I’m trying to get this Discord plugin to work, but it throws a 502 Bad Gateway error on the /auth/discord/callback URL (but only when it contains the returning GET parameters from Discord).

    Any ideas?

  • wrote on last edited by
    #31

    Hi guys. I’m trying to get my nodeBB setup with this Discord plugin, but the redirect URL gets a 503 Bad Gateway whenever it has the parameters that Discord redirects with it (going straight to /auth/discord/callback loads a vanilla error saying login failed or something to that effect).

    Any ideas on how to fix that Bad Gateway problem?

  • Hi guys. I’m trying to get my nodeBB setup with this Discord plugin, but the redirect URL gets a 503 Bad Gateway whenever it has the parameters that Discord redirects with it (going straight to /auth/discord/callback loads a vanilla error saying login failed or something to that effect).

    Any ideas on how to fix that Bad Gateway problem?

    wrote on last edited by phenomlab
    #32

    @Galaxian hi, and welcome to Sudonix 👍
    Can you check your config.json file and ensure that your forum URL doesn’t have a trailing backslash or forward slash in it ? This was the issue @Sampo2910 had.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • nodebb-plugin-reactions not working @v1.0.2 with Harmony theme

    Solved General reactions v3-prod
    47
    12 Votes
    47 Posts
    16k Views
    phenomlab
    @dave1904 just coming back to this thread as @DownPW and I both experienced issues with other plugins today, and the fix was to use the plugin ordering in the ACP and move the Harmony theme to the very top so it comes before everything else in terms of other plugins. It might be worth at least trying this to see if it gives you a result rather than the previous bulldozer approach. Thinking about it, the previous fix I proposed is along the same lines and disabling plugins does in fact change the order when they are enabled again, so this is definitely worth a try. Let me know how you get on.
  • Issues with 2nd NodeBB installation

    Solved General
    22
    3 Votes
    22 Posts
    10k Views
    phenomlab
    @cagatay yes, that will be fine. Just watch for potential caching conflicts as you will have two sites writing to the one instance of iframely.
  • Plugin Install Error

    Solved Customisation plugin error discord
    6
    1
    2 Votes
    6 Posts
    3k Views
    phenomlab
    @Sampo2910 no problems. Happy to help. Just remember that this particular method isn’t the best in the sense that it may not get update notifications. The general recommendation here would be to move back to the official npm repo as soon as the GitHub version has been merged. For the meantime, it’ll work fine though.
  • Discourse can turn posts into wiki posts. Can nodeBB?

    General wiki
    4
    2 Votes
    4 Posts
    2k Views
    phenomlab
    @qwinter it’s workable I think, but not perfect - then again, unless you write a specific plugin to perform such a task, what is. As you pointed out, you have versioning of sorts with the historical access to reach post.
  • 5 Votes
    9 Posts
    3k Views
    crazycells
    is there any way to see whose reputation is changed by this plugin?
  • NodeBB Blog Comments

    General nodebb blog
    3
    1 Votes
    3 Posts
    2k Views
    phenomlab
    @kurulumu-net Not specifically, but you should review this post from the very large thread as it will save you a lot of time. There’s significant customisation on the Ghost side of things, but not in NodeBB https://community.nodebb.org/post/86022
  • NodeBB Discord Plugins

    Unsolved Customisation nodebb discord plugin
    7
    0 Votes
    7 Posts
    4k Views
    phenomlab
    @RiekMedia hi. Just following up on this thread (I know it’s old) but was curious to understand if it’s still an issue or not ?
  • Nodebb best plugins

    General nodebb plugins
    18
    7 Votes
    18 Posts
    7k Views
    crazycells
    @phenomlab thanks