Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Photobucket strategy for OmniAuth

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 omniauth-photobucket.gemspec
README.md

OmniAuth Photobucket

A Photobucket strategy for OmniAuth 1.0.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-photobucket'

And then run bundle.

Usage

use OmniAuth::Builder do
  provider 'photobucket', PHOTOBUCKET_KEY, PHOTOBUCKET_SECRET
end

# or in your devise config:
config.omniauth :photobucket, PHOTOBUCKET_KEY, PHOTOBUCKET_SECRET

Auth Hash Schema

The following information is provided back to you for this provider:

{
  provider: 'photobucket',
  uid: 'photobucket_username',
  info: {
    name:     'photbucket_username',
    nickname: 'photbucket_username',
    urls: {
      home: 'http://s1234.photobucket.com/albums/s123/photobucket_username',
      # You'll need to store this for some API calls
      api_subdomain: 'api1234.photobucket.com'
    }
  },
  credentials: {
    token:  'the_token',
    secret: 'the_secret'
  },
  extra: { 
    # check this out for a few other small things
    raw_info: raw_info_from_request
  }
}
Something went wrong with that request. Please try again.