Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blizzard/omniauth-bnet
Omniauth Strategy for Battle.net Login
https://github.com/blizzard/omniauth-bnet
Last synced: 1 day ago
JSON representation
Omniauth Strategy for Battle.net Login
- Host: GitHub
- URL: https://github.com/blizzard/omniauth-bnet
- Owner: Blizzard
- License: mit
- Created: 2014-08-21T15:40:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T15:12:54.000Z (6 months ago)
- Last Synced: 2025-01-01T02:03:03.167Z (8 days ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 63
- Watchers: 28
- Forks: 28
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# OmniAuth Bnet
[![Gem
Version](https://badge.fury.io/rb/omniauth-bnet.svg)](http://badge.fury.io/rb/omniauth-bnet)This is an OmniAuth strategy for authenticating to Blizzard's Battle.net OAuth
service. In order to use it you need to register an application at the
[Battle.net Developer Portal](https://develop.battle.net/)## Installation
Add this line to your application's Gemfile:
gem 'omniauth-bnet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-bnet
## Usage
use OmniAuth::Builder do
provider :bnet, ENV['BNET_KEY'], ENV['BNET_SECRET']
end### Scopes
In order to provide a list of scopes to request from battle.net:
use OmniAuth::Builder do
provider :bnet, ENV['BNET_KEY'], ENV['BNET_SECRET'], scope: "wow.profile,sc2.profile"
end## License
[The MIT License](http://opensource.org/licenses/MIT)