Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A warden strategy for authentication using Facebook Connect.
Ruby
branch: master

This branch is 1 commit ahead of britt:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Gemfile
README.mdown

README.mdown

Facebook Connect Warden Strategy

A warden strategy for authenticating users with Facebook Connect. Users are considered authenticated if they have a valid fbs_* cookie.

Usage

Make sure that all of the gems in the default group in the Gemfile are also in your project and require facebook.rb. If you're using ActiveRecord have you user model extend Warden::Facebook::User. Otherwise you'll need to add a class method load_from_facebook.

class User < ActiveRecord::Base
  extend Warden::Facebook::User
end

Running the tests

bundle exec ruby test/facebook_connect_test.rb

Shortcomings

This is an extraction from a project of mine and has not really been generalized. I may package it up nicely at some time in the future but until then consider it a sketch.

Something went wrong with that request. Please try again.