I’m writing a Rails 3.1 app, using Clearance for auth. I want to add standard Facebook auth: allow users to continue to register/authenticate with us directly (using Clearance) or via FB; if they sign in/register via FB and we already have an account for the associated email address, merge the accounts.
There’s good documentation out there for using OmniAuth/Devise, but i haven’t found anything similar for Clearance. Are there (actively maintained) gems out there to help here, or even just tutorials? Best i’ve found so far is BlueLightSpecial, but neither it nor the gem it uses for FB Connect appear to be actively maintained any longer.
The good thing about Devise/OmniAuth is its seamless integration with other API’s (Twitter, Facebook, etc).
You could try to use existing gems to cook up your own custom integration with Clearance. For example: https://github.com/nsanta/fbgraph (Although this gem hasn’t been maintained in a while). Still works well.
There is also Koala https://github.com/arsduo/koala – works with OAuth authentication and Facebook Graph API.