omniauth-photobucket 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -4
- data/lib/omniauth/photobucket/version.rb +1 -1
- data/lib/omniauth/strategies/photobucket.rb +6 -3
- metadata +1 -1
data/README.md
CHANGED
@@ -30,16 +30,19 @@ The following information is provided back to you for this provider:
|
|
30
30
|
provider: 'photobucket',
|
31
31
|
uid: 'photobucket_username',
|
32
32
|
info: {
|
33
|
-
|
34
|
-
|
33
|
+
name: 'photbucket_username',
|
34
|
+
nickname: 'photbucket_username',
|
35
|
+
urls: {
|
36
|
+
'home' => 'http://s1234.photobucket.com/albums/s123/photobucket_username'
|
37
|
+
}
|
35
38
|
},
|
36
39
|
credentials: {
|
37
|
-
token:
|
40
|
+
token: 'the_token',
|
38
41
|
secret: 'the_secret'
|
39
42
|
},
|
40
43
|
extra: {
|
41
44
|
# check this out for a few other small things
|
42
|
-
|
45
|
+
raw_info: raw_info_from_request
|
43
46
|
}
|
44
47
|
}
|
45
48
|
```
|
@@ -17,13 +17,16 @@ module OmniAuth
|
|
17
17
|
|
18
18
|
info do
|
19
19
|
{
|
20
|
-
'
|
21
|
-
'
|
20
|
+
'name' => raw_info[:username],
|
21
|
+
'nickname' => raw_info[:username],
|
22
|
+
'urls' => {
|
23
|
+
'home' => raw_info[:homeurl]
|
24
|
+
}
|
22
25
|
}
|
23
26
|
end
|
24
27
|
|
25
28
|
extra do
|
26
|
-
raw_info
|
29
|
+
{ 'raw_info' => raw_info }
|
27
30
|
end
|
28
31
|
|
29
32
|
def raw_info
|