1
votes

I'm currently using Authlogic to handle all user accounts, but our company has switched over to Google apps and I would much rather use that same authentication for all users.

My question is - how?

I know I'll need the ruby-openid gem but I have yet to integrate authentication with a 3rd party. Any recent examples or tutorials out there to help guide the way?

Thanks!

4
I ended up going with a crude but simple solution. Since every account would have to be an active email from our Google Apps Domain I left authlogic behind and did a simple open-id authentication with the open-id url hard coded to our domain. I then just get back the identity url and based on that look up an existing user record or create a new one. Not sure if it's the best way to do it but it works and seems to be pretty secure. What helped? - open_id_authentication plugin - toddsedano.blogspot.com/2010/05/…sshefer
Again, I am not using AuthLogic but will mark this as answered. If you're having the same issues visit toddsedano.blogspot.com/2010/05/…sshefer

4 Answers

2
votes

There is a good resource here that I've used to get this working in the past.

1
votes

This does what you are looking for: authlogic_openid_selector_example. It isn't a tutorial but you can have a look at the code.

1
votes

Seth Ladd, a Google developer advocates, has a blog post on how to authenticate using a google account in a rails 3 appl. You may need to change the example depending on how google apps is configured in your company.

0
votes

Just a thought -- RPX has the ability to do logins from google, and you could use the Authlogic RPX plugin