Skip to content

Sample Rails app showing one way to use Rflickr to do multi-user authenticated flickr integration

Notifications You must be signed in to change notification settings

jerrod/rflickr-multiuser-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sample Rails app showing one way to use Rflickr to do multi-user authenticated flickr integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published