omniauth-bungie-oauth2 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/omniauth-bungie-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/bungie.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 28083809ec04b14d2c83051a7b610d91de7b678aa85c94a1ee2a73c3bf83269b
|
4
|
+
data.tar.gz: 5cb36366cb562a50d39e8b283b9a1e3d1366362da31f431818fbd06b4f458335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ca57e0a754918cf771b433472bd3648ee9357fdabda568cb8cb12e75f57612382a4e2e56a792b5e47bd38a52c67bf86610093c8f898805bdeab1f70c473b88
|
7
|
+
data.tar.gz: 94e2dc996022c374dfb616232628a100a145435c1c22d1a8341b762eb94356bd6bb8e8d68728cd35970655209e830e656a259afa2a0b8f5dbbd5b0dee8287c9e
|
@@ -48,6 +48,13 @@ module OmniAuth
|
|
48
48
|
@raw_info = access_token.get('/Platform/User/GetMembershipsForCurrentUser/').parsed
|
49
49
|
@raw_info = (@raw_info['ErrorCode'] == 1) ? @raw_info['Response'] : {}
|
50
50
|
end
|
51
|
+
|
52
|
+
def build_access_token
|
53
|
+
verifier = request.params["code"]
|
54
|
+
client.auth_code.get_token(verifier,
|
55
|
+
token_params.to_hash(symbolize_keys: true),
|
56
|
+
deep_symbolize(options.auth_token_params))
|
57
|
+
end
|
51
58
|
end
|
52
59
|
end
|
53
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-bungie-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Ruban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.6
|
118
|
+
rubygems_version: 2.7.6
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: A Bungie OAuth2 strategy for Omniauth
|