omniauth-flickr 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +37 -2
- data/lib/omniauth/strategies/flickr.rb +2 -2
- data/lib/omniauth-flickr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 221681304d9f61f755b9444a982d5cabede6fade
|
|
4
|
+
data.tar.gz: 9d3b57376604ef2d1c889971dcb910c366c7c1fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1963e3ccdbf635df694d673b623d7b7735628231c362031b5c3c28c15ff366c1fbd996681d7760ab014cf44471abd787864401f4e21e30d75bf86bd96f9d489
|
|
7
|
+
data.tar.gz: 81bcfdd66bf67609c28dcdae3dae202dc1ce790894672fbc3162a47f66d900b4574151aa890115db933b46d3e510d6153037c4117f61b75cbd14bc97a0a459cc
|
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# omniauth-flickr
|
|
2
|
+
## An Omniauth 1.0 Strategy for Flickr
|
|
2
3
|
|
|
3
4
|
## Basic setup example
|
|
4
5
|
|
|
@@ -7,7 +8,37 @@
|
|
|
7
8
|
provider :flickr, ENV['FLICKR_KEY'], ENV['FLICKR_SECRET'], scope: 'read'
|
|
8
9
|
end
|
|
9
10
|
```
|
|
10
|
-
A scope must be set, which translate to the `perms` parameter in the request url.
|
|
11
|
+
A scope must be set, which translate to the `perms` parameter in the request url.
|
|
12
|
+
Valid perms (scopes) are `read`, `write` and `delete`.
|
|
13
|
+
Info about the authenticated user is fetched from [flickr.people.getInfo](https://www.flickr.com/services/api/flickr.people.getInfo.html).
|
|
14
|
+
|
|
15
|
+
Example [AuthHash](https://github.com/intridea/omniauth/wiki/Auth-Hash-Schema) from a successful authentication:
|
|
16
|
+
|
|
17
|
+
```YML
|
|
18
|
+
provider: flickr
|
|
19
|
+
uid: 62839091@N05
|
|
20
|
+
info: !ruby/hash:OmniAuth::AuthHash::InfoHash
|
|
21
|
+
name: Example User
|
|
22
|
+
nickname: example_user
|
|
23
|
+
ispro: 0
|
|
24
|
+
iconserver: '8061'
|
|
25
|
+
iconfarm: 9
|
|
26
|
+
path_alias:
|
|
27
|
+
urls: !ruby/hash:OmniAuth::AuthHash
|
|
28
|
+
Photos: !ruby/hash:OmniAuth::AuthHash
|
|
29
|
+
_content: https://www.flickr.com/photos/62839091@N05/
|
|
30
|
+
Profile: !ruby/hash:OmniAuth::AuthHash
|
|
31
|
+
_content: https://www.flickr.com/people/62839091@N05/
|
|
32
|
+
mbox_sha1sum: !ruby/hash:OmniAuth::AuthHash
|
|
33
|
+
_content: f9aa1a7919dea99ba86c773f58381aebc91e333d
|
|
34
|
+
location: !ruby/hash:OmniAuth::AuthHash
|
|
35
|
+
_content: "Åre, Sweden"
|
|
36
|
+
image: http://farm9.static.flickr.com/8061/buddyicons/62839091@N05.jpg
|
|
37
|
+
credentials: !ruby/hash:OmniAuth::AuthHash
|
|
38
|
+
token: 72157650421100317-c02692b6059aa1f3
|
|
39
|
+
secret: 75174bc4da58893a
|
|
40
|
+
# ...
|
|
41
|
+
```
|
|
11
42
|
|
|
12
43
|
## For more information see the following:
|
|
13
44
|
|
|
@@ -16,6 +47,10 @@ A scope must be set, which translate to the `perms` parameter in the request url
|
|
|
16
47
|
|
|
17
48
|
## Release notes:
|
|
18
49
|
|
|
50
|
+
* Version 0.0.17
|
|
51
|
+
|
|
52
|
+
- better examples and documentation, fix reversed name and nickname (thanks @maxcal)
|
|
53
|
+
|
|
19
54
|
* Version 0.0.15
|
|
20
55
|
|
|
21
56
|
- Use HTTPS for default icon (see://www.flickr.com/services/api/misc.buddyicons.html)
|
|
@@ -23,8 +23,8 @@ module OmniAuth
|
|
|
23
23
|
|
|
24
24
|
info do
|
|
25
25
|
{
|
|
26
|
-
:name => access_token.params['
|
|
27
|
-
:nickname => access_token.params['
|
|
26
|
+
:name => access_token.params['fullname'],
|
|
27
|
+
:nickname => access_token.params['username'],
|
|
28
28
|
:ispro => user_info["ispro"],
|
|
29
29
|
:iconserver => user_info["iconserver"],
|
|
30
30
|
:iconfarm => user_info["iconfarm"],
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-flickr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Breitkreutz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth
|