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 +4 -4
- data/lib/omniauth/proz/version.rb +1 -1
- data/lib/omniauth/strategies/proz.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c7023e68ebab827f2ec5ec1ce2f3b804290aee
|
4
|
+
data.tar.gz: 4b0dbf8bba2249cac1207fc5f8f94b416b134c77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 091c03da47dc83b47ab5793287af7d4f792b39d100768566ae082bf740589a3cc838b40597b9717185d5628d74eb55a38382cd1893dca3e99d987e19ceeeda3b
|
7
|
+
data.tar.gz: 03d0bc95d48a032401f6d55269c0e9488a76907a7d0cc0a1c7ef27178d722990dd1c8ac48a4a93e7b309e8a49f0f6d2c224a02e56eef58f225cfa468c8478558
|
@@ -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
|