omniauth-clio 0.0.23 → 0.0.151
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth-clio/version.rb +1 -1
- data/lib/omniauth/strategies/Clio.rb +0 -19
- metadata +1 -1
@@ -12,16 +12,6 @@ module OmniAuth
|
|
12
12
|
:token_url => '/oauth/token'
|
13
13
|
}
|
14
14
|
|
15
|
-
uid { raw_info['user']['id']}
|
16
|
-
|
17
|
-
info do
|
18
|
-
{
|
19
|
-
:last_name => raw_info['user']['last_name'],
|
20
|
-
:first_name => raw_info['user']['first_name'],
|
21
|
-
:email => raw_info['user']['email'],
|
22
|
-
:firm => raw_info['account']['name'],
|
23
|
-
}
|
24
|
-
end
|
25
15
|
|
26
16
|
def authorize_params
|
27
17
|
super.tap do |params|
|
@@ -46,15 +36,6 @@ module OmniAuth
|
|
46
36
|
client.get_token(token_params)
|
47
37
|
end
|
48
38
|
|
49
|
-
extra do
|
50
|
-
{:raw_info => raw_info}
|
51
|
-
end
|
52
|
-
|
53
|
-
def raw_info
|
54
|
-
@raw_info ||= MultiJson.load(access_token.get('/api/v1/users/who_am_i').body)
|
55
|
-
rescue ::Errno::ETIMEDOUT
|
56
|
-
raise ::Timeout::Error
|
57
|
-
end
|
58
39
|
end
|
59
40
|
end
|
60
41
|
end
|