omniauth-eve_o 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/omniauth/eve_o/version.rb +1 -1
- data/lib/omniauth/strategies/eve_o.rb +15 -1
- metadata +1 -2
- data/lib/omniauth-eve_o/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cac1cf844083443ae0c66ed8061ea31f2c077389
|
4
|
+
data.tar.gz: 49d4660f2fc3e597901734337ba6bf9733c4c6c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe1f18ad2fed72da3ffdff34b77f753ff08ff7459613109bc88bb0a7f654d04551cb9c89b9f80a0fe0d61214f99d81e5a87f06e244986200af347d2e0760cded
|
7
|
+
data.tar.gz: 3ebc053a36439f4ee4cf0d4bfd0ba55cae992acfa5a075cd68cf11fa6944283857c15423642425273b5b8b3af96b902c8589a680be9cce70227cc7a24422d6d2
|
data/.gitignore
CHANGED
@@ -9,6 +9,8 @@ module OmniAuth
|
|
9
9
|
token_url: 'https://login.eveonline.com/oauth/token'
|
10
10
|
}
|
11
11
|
|
12
|
+
option :name, 'eve_o'
|
13
|
+
|
12
14
|
uid { raw_info['CharacterID'] }
|
13
15
|
|
14
16
|
info do
|
@@ -29,7 +31,19 @@ module OmniAuth
|
|
29
31
|
end
|
30
32
|
|
31
33
|
def raw_info
|
32
|
-
raw_info ||= access_token.get('/oauth/verify').parsed
|
34
|
+
@raw_info ||= access_token.get('/oauth/verify').parsed
|
35
|
+
end
|
36
|
+
|
37
|
+
def authorize_params
|
38
|
+
super.tap do |params|
|
39
|
+
%w[scope].each do |v|
|
40
|
+
if request.params[v]
|
41
|
+
params[v.to_sym] = request.params[v]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
params[:scope] ||= ''
|
46
|
+
end
|
33
47
|
end
|
34
48
|
end
|
35
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-eve_o
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Chambers
|
@@ -86,7 +86,6 @@ files:
|
|
86
86
|
- bin/console
|
87
87
|
- bin/setup
|
88
88
|
- lib/omniauth-eve_o.rb
|
89
|
-
- lib/omniauth-eve_o/version.rb
|
90
89
|
- lib/omniauth/eve_o.rb
|
91
90
|
- lib/omniauth/eve_o/version.rb
|
92
91
|
- lib/omniauth/strategies/eve_o.rb
|