Discord¶
Backend class¶
For Django, add this class path to AUTHENTICATION_BACKENDS. For other
integrations, use the same class path in the framework-specific backend
setting.
Backend name |
Class path |
|---|---|
|
|
Discord uses OAuth2 for authentication.
Register a new application at the Discord Developer Portal, set the callback URL to
http://example.com/complete/discord/replacingexample.comwith your domain.Fill
Client IDandClient Secretvalues in the settings:SOCIAL_AUTH_DISCORD_KEY = '' SOCIAL_AUTH_DISCORD_SECRET = ''
Also it’s possible to define extra permissions with:
SOCIAL_AUTH_DISCORD_SCOPE = [...]
See available scopes at Discord OAuth2 Scopes.