Discord OAuth2 Strategy for OmniAuth.
Read the Discord API documentation for more details: https://discordapp.com/developers/docs/topics/oauth2
Add to your
OmniAuth::Strategies::Discord is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.
Here’s a quick example, adding the middleware to a Rails app in
Rails.application.config.middleware.use OmniAuth::Builder do provider :discord, ENV['DISCORD_APPID'], ENV['DISCORD_SECRET'] end
Bug reports and pull requests are welcome on GitHub at https://github.com/adaoraul/omniauth-discord.
The gem is available as open source under the terms of the MIT License.