omniauth-proz 0.1.7 → 0.1.8
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 +1 -3
- 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: 5c7022232406544bf10aa0ecd13e6d8ba723fb5d
|
4
|
+
data.tar.gz: f958e8d37e926b5821886352b5885c4be6c55e63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bae2659d0f8cb717a228e7c8a87dbd5735412e95b00d75c6f8c20114ae242fbca14bea98cfe8db402ae1f4451ba6ca313251e17205e6a3b53500d01ed7f0575
|
7
|
+
data.tar.gz: 9e9952667d2da98cb9dd83bc1d69cbf27a1cb7c481677ae44c3cf66c305ad09aaee0e615b434447ea7e6cebdc3dc15e42e79c902b5b8fba67054861992916dea
|
@@ -24,12 +24,11 @@ module OmniAuth
|
|
24
24
|
|
25
25
|
def raw_info
|
26
26
|
puts "Get Raw Info"
|
27
|
-
@raw_info ||= access_token.get('https://api.proz.com/v2/user
|
27
|
+
@raw_info ||= access_token.get('https://api.proz.com/v2/user').parsed
|
28
28
|
end
|
29
29
|
|
30
30
|
protected
|
31
31
|
def build_access_token
|
32
|
-
puts "REQUEST: #{request.inspect}"
|
33
32
|
params = {
|
34
33
|
'client_id' => client.id,
|
35
34
|
'client_secret' => client.secret,
|
@@ -37,7 +36,6 @@ module OmniAuth
|
|
37
36
|
'grant_type' => 'authorization_code',
|
38
37
|
'redirect_uri' => 'http://localhost:3000/translators/auth/proz/callback'
|
39
38
|
}.merge(token_params.to_hash(symbolize_keys: true))
|
40
|
-
puts "PARAMS: #{params}"
|
41
39
|
client.get_token(params, deep_symbolize(options.auth_token_params))
|
42
40
|
end
|
43
41
|
|