Rails 3, Twitter and Co.

8 views
Skip to first unread message

Andrei Erdoss

unread,
Mar 18, 2010, 10:07:58 PM3/18/10
to tog_...@googlegroups.com
Hello,

I did some investigations and I came to the following conclussions:

1. Rails 3 is not ready for Tog. Mountable apps have not been implemented yet, thus it's no point to upgrade Tog until this happens. I emailed rails-core and they are still debating this subject (mountable apps).

2. After inspecting boonious' code, I noticed that he only implemented the code to connect to Twitter. He hacks Restfull Authentication, and some other plugins in other to make this work. My other solution that I would recommend is to use Authlogic, because it's more modular, less coupling as if using RA. Also there is an easy way to transition from RA to Authlogic, without changing password formats. http://bit.ly/BTveA Authlogic has plugins for OAuth (twitter, google), Facebook Connect, OpenID, LDAP, PAM.

3. I would recommend including in the config/environments/test.rb the gems necessary for testing in the installation template:

thoughtbot-factory_girl
thoughtbot-shoulda
mocha
config.gem "ruby-debug", :environment => [:test]

Any comments, thoughts? If you would like I can make these changes on my forks.

--
Andrei Erdoss

Boon Low

unread,
Mar 19, 2010, 10:41:41 AM3/19/10
to tog_...@googlegroups.com
Hi Andrei,

I think you should implement and improve upon existing solutions. Totally agreed about the needs for integrating with other federated authentication/authorisation targets. Given the proliferation of existing social networks, if tog were to be successful, it must interoperate with users' designated platforms. 

Our work currently is focused on Twitter/tog_social, and on creating a html5/ajax (jQuery - eventually) version - see: http://ux2.nesc.ed.ac.uk (e.g. login via Twitter and go to your profile homepage, share/delete some comments). Currently implementing a 'send to Twitter' and character counter. I did successfully implemented with OpenID and Google's (OAuth+OpenID) login which needs further hacking of the related plugins. Integration with Google services (Book Search) is next on our agenda.. 

As usual, happy to adopt better solutions.

All the best,

Boon (boonious)

-----
Boon Low
UX2.0: Developer, Manager
UK National e-Science Centre
http://homepages.ed.ac.uk/boon

--
You received this message because you are subscribed to the Google Groups "tog_users" group.
To post to this group, send email to tog_...@googlegroups.com.
To unsubscribe from this group, send email to tog_users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tog_users?hl=en.

Alberto Molpeceres

unread,
Mar 20, 2010, 6:01:43 AM3/20/10
to tog_...@googlegroups.com
Hi Andrei,

Good job.

About Rails 3
==========
So, no support for mountable apps, no desert for rails 3. It seems
like we are empty of options for moving to Rails 3 right now. Right
now it shouldn't be a problem since "nobody" is using rails 3 on
production environments, but no idea how much would it last. No idea
which way is the best way to go right now.

About Authlogic/RA
==============
Well, I would like to hear Aitor's thought on this, but moving to
Authlogic sounds ok to me.


al.


--
Alberto Molpeceres.
Linking Paths.

Simple registration for your events. http://www.stagehq.com

> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.

lgs

unread,
Mar 30, 2010, 5:07:44 AM3/30/10
to tog_users

> So, no support for mountable apps, no desert for rails 3. It seems
> like we are empty of options for moving to Rails 3 right now.

did you see this http://tinyurl.com/ycyqaps on how to mount
a Rails3 app into a Rails3 app ?

> Well, I would like to hear Aitor's thought on this, but moving to
> Authlogic sounds ok to me.

consider the coolest in town is actually devise: http://tinyurl.com/yaab6lc
have a look at the code : http://github.com/plataformatec/devise

> > I think you should implement and improve upon existing solutions. Totally
> > agreed about the needs for integrating with other federated
> > authentication/authorisation targets. Given the proliferation of existing
> > social networks, if tog were to be successful, it must interoperate with
> > users' designated platforms.

Devise is a flexible authentication solution for Rails based on
Warden. It's a
fexible compromise between Authlogig and Clearance, getting the better
in both of them.

It is:

* Is Rack based;
* Is a complete MVC solution based on Rails engines;
* Allows you to have multiple roles (or models/scopes) signed in
at the same time;
* Is based on a modularity concept: use just what you really need.


> > Our work currently is focused on Twitter/tog_social, and on creating a
> > html5/ajax (jQuery - eventually) version - see:http://ux2.nesc.ed.ac.uk
> > (e.g. login via Twitter and go to your profile homepage, share/delete some
> > comments). Currently implementing a 'send to Twitter' and character counter.
> > I did successfully implemented with OpenID and Google's (OAuth+OpenID) login
> > which needs further hacking of the related plugins. Integration with Google
> > services (Book Search) is next on our agenda..

you can write your own "strategy" for whatever Openid - Oauth -
Twitter auth - Facebook auth,
... and so on auth, you'd like :

- http://github.com/grimen/devise_facebook_connectable
- http://github.com/scambra/devise_invitable
- http://github.com/theshortcut/devise_mongomapper_example
- ... more in general: http://tinyurl.com/yg97n5a

It's rapidally raising the top rank :

- http://ruby-toolbox.com/categories/rails_authentication.html
- http://github.com/plataformatec/devise/commits

Works with rails3: http://railsplugins.org/plugins/13-devise

Non the less,
it's a pleasure working with devise community and his leadres :

http://groups.google.com/group/plataformatec-devise?hl=en

Hope to be useful
Bye Luca G. Soave

Reply all
Reply to author
Forward
0 new messages