Hey guys, I'm a relatively new user of Flarum and I'm currently hosting my own installation over at beta.intrepidsociety.com/forum. As you can see it's a fresh installation that I'm currently building a new extension on.
What I'm trying to accomplish is to have an option to log in using Discord. I've come quite far but now I seem to be stuck. Whenever I try to log in on my personal Discord account it seems to be fine, however when someone else tries to log in they get an "Unauthorized" (401) error. I know this is caused because the authentication token is not working. I've been unable to locate the exact problem here.
The extension's GitHub page can be found here: https://github.com/pnobbe/flarum-ext-oauth-discord
The extension uses my own OAuth provider which can be found here: https://github.com/pnobbe/oauth2-discord
Another goal that I wish to accomplish is to make this Discord login function be the default login method. In an ideal situation I would like for someone to not be able to register on the forum locally but rather have everything managed through Discord. I've however been unable to disable the default login method.
As you can probably see I'm quite new to the way Flarum works and I've tried doing my own research by looking at other extension examples such as the Github and Facebook built-in extensions but I feel like I've exhausted those sources.
Any kind of help or ideas would be appreciated.