Sha256: 1721bd548a3169cf280befbab62712996b7f1190a5ed2356f3e9a71e03467b56

Contents?: true

Size: 911 Bytes

Versions: 3

Compression:

Stored size: 911 Bytes

Contents

# OmniAuth Discord 

Discord OAuth2 Strategy for OmniAuth.

Read the Discord API documentation for more details: https://discordapp.com/developers/docs/topics/oauth2

## Installing

Add to your `Gemfile`:

```ruby
gem 'omniauth-discord'
```

Then `bundle install`.

## Usage

`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 `config/initializers/omniauth.rb`:

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :discord, ENV['DISCORD_APPID'], ENV['DISCORD_SECRET']
end
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/adaoraul/omniauth-discord.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-discord-0.1.3 README.md
omniauth-discord-0.1.2 README.md
omniauth-discord-0.1.0 README.md