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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0ae5a58332f7b9a97ebfb48b45151b06f3b98bb6
4
- data.tar.gz: 3197c73b84b4c359af4008c481e3bd06855b2bd2
2
+ SHA256:
3
+ metadata.gz: 28083809ec04b14d2c83051a7b610d91de7b678aa85c94a1ee2a73c3bf83269b
4
+ data.tar.gz: 5cb36366cb562a50d39e8b283b9a1e3d1366362da31f431818fbd06b4f458335
5
5
  SHA512:
6
- metadata.gz: 1f3c44ae4d32a411e6e4f5b044afeb5ea11912ff34d0b3dec64fd9df45ac3be4fd49355de0b6d4cd2dae9809f5234f35c6a9dda2ebb0604e0812b59549ea63aa
7
- data.tar.gz: 651dbc6e3ba8cdb4909d2f820369d1511d26a5f939ef32927bb7f88379f4150899c41ac73435d9603092951784593ddc3304b829b21a0714c774c7a2ae8e3782
6
+ metadata.gz: 19ca57e0a754918cf771b433472bd3648ee9357fdabda568cb8cb12e75f57612382a4e2e56a792b5e47bd38a52c67bf86610093c8f898805bdeab1f70c473b88
7
+ data.tar.gz: 94e2dc996022c374dfb616232628a100a145435c1c22d1a8341b762eb94356bd6bb8e8d68728cd35970655209e830e656a259afa2a0b8f5dbbd5b0dee8287c9e
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module BungieOauth2
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -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.1
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: 2017-06-25 00:00:00.000000000 Z
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.8
118
+ rubygems_version: 2.7.6
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: A Bungie OAuth2 strategy for Omniauth