You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An authlogic add-on to pick up javascript authenticated users and log them in with authlogic using Koala or any other wrapper you choose to add an adapter for.
This is a plugin for integrating facebook sessions into authlogic. It relies on using the Javascript SDK to login to facebook. Currently the shim support koala (github.com/arsduo/koala) for access the graph API but if you have a preferred library it is easy to add an adapter.
This requires a config/facebook.yml file that looks like this:
To get hold of the facebook particulars you will need to add something like this;
deffacebook_usercurrent_user_session.try(:facebook_user)
enddeffacebook_user?!facebook_user.nil?enddeffacebook_session?current_user_session.try(:facebook_session?)
end
Currently the only adapter in the shim is for koala (github.com/arsduo/koala) but if you have a preferred wrapper for accessing the graph API please fork the project and add your own adapter (with tests) then send me a pull request.
Add tests for it. This is important so I don’t break it in a future version unintentionally.
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
Send me a pull request. Bonus points for topic branches.
An authlogic add-on to pick up javascript authenticated users and log them in with authlogic using Koala or any other wrapper you choose to add an adapter for.