Skip to content

Discord Login - OAuth2 - NodeBB

Solved General
32 4 14.1k 1
  • @phenomlab

    Hi,

    Thanks regarding the CSS that is OK now. 🙂
    I have the same settings as you have posted in all above.

    I noticed that when i hover over the ‘alternative registration’ I can see this in bottom of window before I click the link. 2022-04-04 15_04_33-Films & TV.png
    That is not the link that is in my app.
    2022-04-04 15_06_58-Discord Developer Portal — My Applications.png

    This is wrong?

    Maybe you could take a look remotely via AnyDesk ?

    Note: My forum is not ‘public’ as in it can still of course be accessed publicly but I have not ‘advertised’ it as yet. So people do not know it’s there. I will do that when I am happy with it 🙂 Just for Gamers anyway and of course for my own hobby/learning curve. I think with Discord more people will be more likely to ‘quickly’ register.

    wrote on last edited by
    #12

    @Sampo2910 said in Discord Login - OAuth2 - NodeBB:

    This is wrong?

    No, this is fact correct. The callback part is the data sent back from Discord itself to your site to complete the OAUTH handshake.

    @Sampo2910 said in Discord Login - OAuth2 - NodeBB:

    Maybe you could take a look remotely via AnyDesk ?

    I registered on your site, so if you can make me an admin (temporarily) that would be good so I can have a look around.

    I’ll also need access to your Discord setup

  • @Sampo2910 said in Discord Login - OAuth2 - NodeBB:

    This is wrong?

    No, this is fact correct. The callback part is the data sent back from Discord itself to your site to complete the OAUTH handshake.

    @Sampo2910 said in Discord Login - OAuth2 - NodeBB:

    Maybe you could take a look remotely via AnyDesk ?

    I registered on your site, so if you can make me an admin (temporarily) that would be good so I can have a look around.

    I’ll also need access to your Discord setup

    wrote on last edited by
    #13

    @phenomlab

    You should be an admin now.

    If you send me your discord tag i can invite you as a tester.

  • @phenomlab

    You should be an admin now.

    If you send me your discord tag i can invite you as a tester.

    wrote on last edited by
    #14

    @Sampo2910 phenomlab#0581

  • @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?


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
  • TNG + Nodebb

    General tng genealogy nodebb plugin
    4
    0 Votes
    4 Posts
    2k Views
    phenomlab
    @Madchatthew said in TNG + Nodebb: you have to try and use duck tape and super glue to change something to make it do what you want it to do I couldn’t have put that better myself.
  • Nodebb design

    Solved General nodebb
    2
    1 Votes
    2 Posts
    1k Views
    phenomlab
    @Panda said in Nodebb design: One negative is not being so good for SEO as more Server side rendered forums, if web crawlers dont run the JS to read the forum. From recollection, Google and Bing have the capability to read and process JS, although it’s not in the same manner as a physical person will consume content on a page. It will be seen as plain text, but will be indexed. However, it’s important to note that Yandex and Baidu will not render JS, although seeing as Google has a 90% share of the content available on the web in terms of indexing, this isn’t something you’ll likely lose sleep over. @Panda said in Nodebb design: The “write api” is preferred for server-to-server interactions. This is mostly based around overall security - you won’t typically want a client machine changing database elements or altering data. This is why you have “client-side” which could be DOM manipulation etc, and “server-side” which performs more complex operations as it can communicate directly with the database whereas the client cannot (and if it can, then you have a serious security flaw). Reading from the API is perfectly acceptable on the client-side, but not being able to write. A paradigm here would be something like SNMP. This protocol exists as a UDP (UDP is very efficient, as it is “fire and forget” and does not wait for a response like TCP does) based service which reads performance data from a remote source, thus enabling an application to parse that data for use in a monitoring application. In all cases, SNMP access should be “RO” (Read Only) and not RW (Read Write). It is completely feasible to assume complete control over a firewall for example by having RW access to SNMP and then exposing it to the entire internet with a weak passphrase. You wouldn’t do it (at least, I hope you wouldn’t) and the same ethic applies to server-side rendering and the execution of commands.
  • 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.
  • Nodebb as blogging platform

    General blog
    10
    5 Votes
    10 Posts
    6k Views
    phenomlab
    @qwinter I’ve extensive experience with Ghost, so let me know if you need any help.
  • 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.
  • [NodeBB] Custom fields plugin

    Unsolved Customisation nodebb plugins javascript custom
    5
    0 Votes
    5 Posts
    3k Views
    phenomlab
    @pwsincd 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 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