omniauth-proz 0.1.2 → 0.1.3

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
2
  SHA1:
3
- metadata.gz: 51a0ef83267946f0c4c7331fc9986e8170574348
4
- data.tar.gz: 57ec88b9fea0394f278743555af615e57aacff1b
3
+ metadata.gz: 62c7023e68ebab827f2ec5ec1ce2f3b804290aee
4
+ data.tar.gz: 4b0dbf8bba2249cac1207fc5f8f94b416b134c77
5
5
  SHA512:
6
- metadata.gz: 4e6ac2cfc9152195946685173340d1460463b7710084dec646335d4e03e540642c0b66449756889e8be33ab5d415aeb06c9587e76b7a708b11e5ef717e8449a4
7
- data.tar.gz: db0a4660bc90eb9b2119ccbb484c2fa81c5141a87d862b3809bcac1cddc7a5865d4ab12d6c76038d2bed832bd246a4587cf04c0303b98f1bea2d564548db72dd
6
+ metadata.gz: 091c03da47dc83b47ab5793287af7d4f792b39d100768566ae082bf740589a3cc838b40597b9717185d5628d74eb55a38382cd1893dca3e99d987e19ceeeda3b
7
+ data.tar.gz: 03d0bc95d48a032401f6d55269c0e9488a76907a7d0cc0a1c7ef27178d722990dd1c8ac48a4a93e7b309e8a49f0f6d2c224a02e56eef58f225cfa468c8478558
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Proz
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -26,6 +26,19 @@ module OmniAuth
26
26
  puts "Get Raw Info"
27
27
  @raw_info ||= access_token.get('https://api.proz.com/v2/user.json').parsed
28
28
  end
29
+
30
+ protected
31
+ def build_access_token
32
+ puts "REQUEST: #{request}"
33
+ params = {
34
+ 'appid' => client.id,
35
+ 'secret' => client.secret,
36
+ 'code' => request.params['code'],
37
+ 'grant_type' => 'authorization_code'
38
+ }.merge(token_params.to_hash(symbolize_keys: true))
39
+ client.get_token(params, deep_symbolize(options.auth_token_params))
40
+ end
41
+
29
42
  end
30
43
  end
31
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-proz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias