rafalp / Misago

Misago is fully featured modern forum application that is fast, scalable and responsive.
http://misago-project.org
GNU General Public License v2.0
2.49k stars 521 forks source link

Sign-in with Discord #1719

Closed vikramlance closed 5 months ago

vikramlance commented 5 months ago

added discord sign in option Fixes https://github.com/rafalp/Misago/issues/1637

Added test cases tested the functionality Discord option is available on the "Setup new login method" image

I have added Mesago to Discord. When registering the app on the discord to get client id and client secret, the redirect URL is set as below image

Be careful to select CLIENT ID and CLIENT SECRET (and not PUBLIC KEY accidentally) under Client information section in Discord. Its in OAuth2 section in Discord. It won't be visible if you are looking at General Information section.

Once the App ID and secret are added to the settings the new option appears as shown below image

When users try to sign in or register they have the option to use discord image

image

the login option with Discord asks to authorize image

Once clicked Authorize, it logs in to Mesago as expected image

coveralls commented 5 months ago

Coverage Status

coverage: 98.652% (+0.07%) from 98.587% when pulling 4db8583d7fd74ed1b35574c373a2cb7a5f607292 on vikramlance:fix-1637-discord-sign-in-option into 0c99ee36da3f15acb4b06f4b8fc72d8807e78f93 on rafalp:main.

rafalp commented 5 months ago

Great, thank you for testing this integration! I'll give this another look tomorrow and if I'm not seeing anything I am unhappy about, I'll merge it.

rafalp commented 5 months ago

Thank you!