omniauth-bnet 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +2 -2
- data/README.md +3 -0
- data/examples/Gemfile.lock +2 -2
- data/examples/sinatra.rb +2 -0
- data/lib/omniauth-bnet/version.rb +1 -1
- data/lib/omniauth/strategies/bnet.rb +2 -9
- metadata +16 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 75481f78d510d2b757de486b592b96aa9cd5eb2d
|
4
|
+
data.tar.gz: 7b7771300ba046110568b834b9d6798176874023
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9c0985ff01517891e62a2a4756be81595d619a380907c3cdb311cdf3eab820f3cf32a71950723ca91c8da82c35d1921c9ecb113c591b3a999e33f7f8bf806462
|
7
|
+
data.tar.gz: 54f8f31cb69930851b36ed6d908896c7f785c41330c54d3ad4f8ee17ac0c47e6408aa4b57a510b4ca4d420a3380efa949f7dec684765d7f1ed0919ee37f537a3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-bnet (
|
4
|
+
omniauth-bnet (1.0.1)
|
5
5
|
omniauth (~> 1.0)
|
6
6
|
omniauth-oauth2 (~> 1.1)
|
7
7
|
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
faraday (0.9.0)
|
12
12
|
multipart-post (>= 1.2, < 3)
|
13
|
-
hashie (3.
|
13
|
+
hashie (3.3.1)
|
14
14
|
jwt (1.0.0)
|
15
15
|
multi_json (1.10.1)
|
16
16
|
multi_xml (0.5.5)
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# OmniAuth Bnet
|
2
2
|
|
3
|
+
[![Gem
|
4
|
+
Version](https://badge.fury.io/rb/omniauth-bnet.svg)](http://badge.fury.io/rb/omniauth-bnet)
|
5
|
+
|
3
6
|
This is an OmniAuth strategy for authenticating to Blizzard's Battle.net OAuth
|
4
7
|
service. In order to use it you need to register an application at the
|
5
8
|
[Battle.net Developer Portal](https://dev.battle.net)
|
data/examples/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
faraday (0.9.0)
|
5
5
|
multipart-post (>= 1.2, < 3)
|
6
|
-
hashie (3.
|
6
|
+
hashie (3.3.1)
|
7
7
|
httplog (0.2.7)
|
8
8
|
jwt (1.0.0)
|
9
9
|
multi_json (1.10.1)
|
@@ -18,7 +18,7 @@ GEM
|
|
18
18
|
omniauth (1.2.2)
|
19
19
|
hashie (>= 1.2, < 4)
|
20
20
|
rack (~> 1.0)
|
21
|
-
omniauth-bnet (1.
|
21
|
+
omniauth-bnet (1.1.0)
|
22
22
|
omniauth (~> 1.0)
|
23
23
|
omniauth-oauth2 (~> 1.1)
|
24
24
|
omniauth-github (1.1.2)
|
data/examples/sinatra.rb
CHANGED
@@ -41,8 +41,7 @@ module OmniAuth
|
|
41
41
|
uid { raw_info['id'].to_s }
|
42
42
|
|
43
43
|
info do
|
44
|
-
|
45
|
-
:battletag => raw_info["battletag"] }
|
44
|
+
raw_info
|
46
45
|
end
|
47
46
|
|
48
47
|
def raw_info
|
@@ -50,13 +49,7 @@ module OmniAuth
|
|
50
49
|
|
51
50
|
access_token.options[:mode] = :query
|
52
51
|
|
53
|
-
|
54
|
-
battletag = access_token.get('account/user/battletag').parsed['battletag']
|
55
|
-
|
56
|
-
@raw_info = {
|
57
|
-
'id' => id,
|
58
|
-
'battletag' => battletag
|
59
|
-
}
|
52
|
+
@raw_info = access_token.get('account/user').parsed
|
60
53
|
end
|
61
54
|
|
62
55
|
private
|
metadata
CHANGED
@@ -1,78 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-bnet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Christopher Giroir
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: omniauth
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: omniauth-oauth2
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.1'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.1'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: bundler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '1.6'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '1.6'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rake
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- - ~>
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- - ~>
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
description: Omniauth Strategy for Battle.net OAuth Login. For more info visit https://dev.battle.net
|
@@ -82,7 +73,7 @@ executables: []
|
|
82
73
|
extensions: []
|
83
74
|
extra_rdoc_files: []
|
84
75
|
files:
|
85
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
86
77
|
- Gemfile
|
87
78
|
- Gemfile.lock
|
88
79
|
- LICENSE.txt
|
@@ -98,26 +89,25 @@ files:
|
|
98
89
|
homepage: https://github.com/Blizzard/omniauth-bnet
|
99
90
|
licenses:
|
100
91
|
- MIT
|
92
|
+
metadata: {}
|
101
93
|
post_install_message:
|
102
94
|
rdoc_options: []
|
103
95
|
require_paths:
|
104
96
|
- lib
|
105
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
98
|
requirements:
|
108
|
-
- -
|
99
|
+
- - ">="
|
109
100
|
- !ruby/object:Gem::Version
|
110
101
|
version: '0'
|
111
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
103
|
requirements:
|
114
|
-
- -
|
104
|
+
- - ">="
|
115
105
|
- !ruby/object:Gem::Version
|
116
106
|
version: '0'
|
117
107
|
requirements: []
|
118
108
|
rubyforge_project:
|
119
|
-
rubygems_version:
|
109
|
+
rubygems_version: 2.2.2
|
120
110
|
signing_key:
|
121
|
-
specification_version:
|
111
|
+
specification_version: 4
|
122
112
|
summary: Omniauth Strategy for Battle.net
|
123
113
|
test_files: []
|