During today's meeting, John Duff showed us how to use the Device
authentication framework with Rails 3, and how to use it to authenticate
against Facebook.
John's code is available at:
http://github.com/jduff/facebook_devise
and he directs us to a handy blog article on the topic:
http://www.stjhimy.com/posts/14-allowing-devise-login-with-facebook-account
Notes:
- Get Devise from http://github.com/plataformatec/devise
gem 'devise', :git=>'git://github.com/plataformatec/devise.git'
- Install the oauth2
- Devise has a very active community.
- For Facebook authentication:
- Authenticate against https://graph.facebook.com/
- :authorize_path => '/oauth/authorize'
- :access_token_path => '/oauth/access_token'
- :scope => %w(email)
- SSH tunnels are useful for demos:
- Put "GatewayPorts yes" into /etc/ssh/sshd_config on the remote
server, then reload sshd.
- ssh -R :4000:localhost:3000 us...@host.example.com
- OAuth is not the same as OpenID (though there is an OpenID module for
Devise)
- You might be able to use a paid service called Janrain Engage (formerly
known as RPX) to handle authentication via a bunch of different services
(Facebook, Twitter, MySpace, Yahoo, Google, Windows Live, OpenID)
- http://rpxnow.com/
- http://github.com/slainer68/devise_rpx_connectable
- Devise is very extensible. For example, you can let a user log in using
their email address *or* their username (their choice). See:
http://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign_in-using-their-username-or-email-address
- There are a bunch of Devise HOWTOs here:
http://github.com/plataformatec/devise/wiki/_pages
- Facebook Open Graph library: http://github.com/mmangino/mogli
- John strongly recommends the facebooker2 gem, because the upstream devs
are very responsive.
After John Duff's presentation, we moved on to informal discussion about
various topics, with Jonathan Sutherland sitting at the keyboard. Here are
some of the things that were discussed:
- http://getrealsimple.com/ - Jonathan's real estate site - Image upload on
the admin page (not public) uses Paperclip on the Rails side
http://github.com/thoughtbot/paperclip and the ajax-upload jQuery plugin:
http://valums.com/ajax-upload/
- http://ottawa.golocavore.ca/ - See the Join page; uses Devise and a
couple of different models for different types of users.
- http://transloadit.com/ - Paid service that for handling image/video
uploads, which handles uploading/resizing/transcoding.
- http://swfupload.org/ - for handling multiple file uploads
- http://codemirror.net/ - in-browser, syntax-highlighting code editing
- http://typosphere.org/ - Typo - Rails blogging platform
- http://www.openstreetmap.org/ - CC-BY-SA wiki map with points-of-interest
- Call for volunteers: Ken Seville <ken.s...@civiside.com> is looking
for volunteers to work on http://www.civiside.com/ to help match disabled
veterans with available jobs based on their skills (Ken, feel free to
reply to the list with more info):
- Before: http://hrapp.dnd.ca/tap/engraph/home_e.asp
- After: http://www.civiside.com/
If I've missed anything, please speak up!
Thanks to John Duff for giving us a very informative presentation, Thanks
to everyone for coming, and thanks to Shopify for providing the meeting
space and refreshments.
See you all next month!
--
Dwayne C. Litzenberger <dl...@dlitz.net>
OpenPGP: 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
--
You received this message because you are subscribed to the Ottawa Group of Ruby Enthusiasts [OGRE].
To post to this group, send email to ogre...@googlegroups.com
To unsubscribe from this group, send email to
ogre-list+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ogre-list?hl=en
--
You received this message because you are subscribed to the Ottawa Group of Ruby Enthusiasts [OGRE].
To post to this group, send email to ogre...@googlegroups.com
To unsubscribe from this group, send email to
ogre-list+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ogre-list?hl=en
Anyone have anything they want to show?
Is there anything you want to see presented?
-John