FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Locking down Discord access via FusionAuth

    Scheduled Pinned Locked Moved Solved
    Q&A
    discord access control
    1
    2
    746
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      Do you have any example code where FusionAuth is the source of identity and Discord delegates user management to it?

      We are migrating from another chat provider to Discord and want to enable access only for users who are registered in FusionAuth.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dan
        last edited by

        Hmmm.

        Did some research and there's no way to straight forwardly have Discord delegate user management to an IdP.

        This is in contrast that with other tools like Zendesk which let you do this pretty easily.

        Of course, you can go the other way (have users log in with Discord) but that's not what you are asking.

        There are some workarounds, but they require custom discord development. Here are some options:

        • Create a discord application that adds users to a server based on the oauth2 flow with the guilds.join scope. set that application up in a way that people need to sign in with FusionAuth and link that signup to their discord account. Your discord app that handles said oauth2 flow. Then you add users through that app instead of invite links.
        • Use a public server but lock channels behind a role which gets added upon authorizing with FusionAuth by your bot.
        • You could also use linked roles with a general access role people can opt into, if they fulfil the requirements set by that role (which you could control via registration at FusionAuth).

        There's lots of documentation on creating discord bots but I don't have a specific example of any of these solutions, sorry.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • danD dan has marked this topic as solved on
        • First post
          Last post