Likqez I'm not sure exactly what the issue is here. Could you clarify? As far as I can tell, /forum/auth/discord works just fine, and the redirect should be set to that in the Discord application settings...

    Hi there - I seem to be encountering an issue setting the OAuth2 redirect. It may have something to do with the above error but uncertain. I've added the client ID and secret, however when trying to log in with Discord, I get redirected to an "Invalid OAuth2 redirect_uri" message. Flarum is installed to /forum/ . For the sake of sanity, I've tried redirecting to both /forum/public/auth/discord as well as /forum/auth/discord , neither of which give a different result. Thoughts?

    This is on a fresh install of Flarum (just installed in the past hour).

    Edit: re-read that thread and it seems related. Well that's aggravating.

    11 days later

    panikajo You need to add a redirect URL to your Discord application, see the first post for what to write.

      panikajo Hm, you are using subdomain. I think there's an issue with subdomains that is fixed for the next beta, but I don't remember it fixing the error you are receiving. Does that error appear immediately after when you click "Login with Discord" or after you authorize the application ?

        datitisev Does that error appear immediately after when you click "Login with Discord" or after you authorize the application ?

        yes

        panikajo My apologies, I meant subfolder. Also, please do not make multiple replies when you can edit the original one 🙂.

        And it is an issue because of the subfolder, none of the OAuth extensions currently work. I'm fixing it right now for fof/oauth-discord :D.

          0.1.2

          Updating

          composer update fof/auth-discord

            luceos yeah ty.
            and add this please.
            ru.yml
            `fof-auth-discord:
            admin:
            discord_settings:
            client_id_label: Client ID
            client_secret_label: Client Secret
            title: FriendsOfFlarum Discord Login

            forum:
            log_in:
            with_discord_button: Войти через Discord`

              panikajo I suggest you use Linguist to translate the login button.

              Additionally FoF will no longer accept non-english translations, you should suggest that to someone managing a russian language pack instead 😉