Skip to content

comp615/omniauth-bnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Omniauth Strategy for Battle.net Login

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%