Skip to content

Discord Login - OAuth2 - NodeBB

Solved General
32 4 14.1k 1
  • @Sampo2910 phenomlab#0581

    wrote on last edited by Sampo2910
    #15

    @phenomlab

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

    UPDATE 🙂 Invited To Test App.

  • @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.
  • Fresher in Nodebb install

    General nodebb
    24
    15 Votes
    24 Posts
    11k Views
    phenomlab
    @Hari I’ve been reading a lot about APO. Looks impressive.
  • NodeBB v2.4.0

    Solved General nodebb version error
    3
    1
    2 Votes
    3 Posts
    2k Views
    Sampo2910
    @phenomlab As always…Thank you. Worked for me.
  • 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.
  • NodeBB vs Flarum for a non developer

    Solved General
    17
    10 Votes
    17 Posts
    6k Views
    phenomlab
    @marusaky That’s really easily done. I think the docs need updating for the latest release. Did you land up on the 18.x train ?
  • 5 Votes
    9 Posts
    3k Views
    crazycells
    is there any way to see whose reputation is changed by this plugin?
  • Nodebb Hashtag plugin

    Solved General
    15
    1 Votes
    15 Posts
    6k Views
    phenomlab
    @jac Great ! I’ll close this off.
  • Nodebb best plugins

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