omniauth-cloudsdale 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,11 +16,14 @@ module OmniAuth
|
|
16
16
|
|
17
17
|
info do
|
18
18
|
{
|
19
|
-
:email
|
19
|
+
:email => raw_info["user"]["email"],
|
20
|
+
:name => raw_info["user"]["name"],
|
21
|
+
:nickname => raw_info["user"]["username"],
|
22
|
+
:image => raw_info["user"]["avatar"]
|
20
23
|
}
|
21
24
|
end
|
22
25
|
|
23
|
-
extra { raw_info }
|
26
|
+
extra { raw_info["user"] }
|
24
27
|
|
25
28
|
def raw_info
|
26
29
|
@raw_info ||= access_token.get("https://api.cloudsdale.org/v2/me.json").parsed
|