-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (19 loc) · 1.15 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Rflickr & Rails Multi User Authentication
This is a sample rails app to demonstrate one way to accomplish per-user Flickr integration giving users access to their photosets.
## Usage
To use the app tool, obtain a Flickr API key and secret from http://www.flickr.com/services/api/keys/apply/ and add it to /config/initializers/flickr\_api.rb.
Be sure to set the callback URL in the api creation form to the /flickr\_auth/create wherever you app will be running .
(e.g http://0.0.0.0:3000/flickr\_auth/create)
rake db:migrate
script/server start
Sign up for a new account, and then visit /flickr\_auth/new to authorize the app with your flickr account.
The app will then display your photosets and photos at /photos
## Notes
rFlickr needs to be modified to allow the token to be stores in and retreived from the db. I have included the files in /lib/flickr
The changed files are
flickr/auth.rb
flickr/token.rb
flickr/token\_cache.rb
If anyone finds this useful then perhaps we can get this put into the rflickr gem, though i suspect there are better, cleaner REST implementations.
## Todo
1. Tests for the rflickr integration.