Blizzard/omniauth-bnet

Name: omniauth-bnet

Owner: Blizzard Entertainment

Description: Omniauth Strategy for Battle.net Login

Created: 2014-08-21 15:40:41.0

Updated: 2018-01-03 16:14:50.0

Pushed: 2016-06-08 23:52:09.0

Homepage: null

Size: 10

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OmniAuth Bnet

Gem Version

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

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.