If a web application just needs to authenticate users with a google account with omniauth, in other words, users can just login with their google account.
What's the best choice to choose between the two gems:
omniauth-google-oauth2 or google-api-ruby-client ?
omniauth-google-oauth2 is your best choice, because "omniauth" gem not dependent on suppliers and perfectly integrates with Devise
Related
I am using devise as a good way of authentication in my rails 3.2 application and I tried several ways to fetch online users ,I need to know if I can fetch all online users using sessions on my application
Google and stackoverflow are your friends:
There appears to be a gem for this and has been asked a lot.
"Who's Online" using Devise in Rails
I want to configure the devise gem for admin user. In my application ive installed the devise gem and currently it is used as a normal user who has account in my application. I want to add administration in my application so that an admin user can delete or modify etc operations to a particular user account and also do other administrative work such as deleting the user data which is not appropriate for public users.
I'd look into two gems: RailsAdmin and CanCan.
I recently migrated my app from rails 2.3.8 to rails 3.0.7, i was using lockdown for access control but lockdown is not supported in rails 3.x. Is there any gem similar to lockdown for access control, i tried cancan but its not that much effective like lockdown(i had to write if conditions since the links were still visible).
Is there any gem in rails 3 which provides similar access control
you could take a look at gems such as cancan for authorization and OmniAuth for authentication
also look at http://railscasts.com/?tag_id=25 and http://railscasts.com/?tag_id=26 for more info.
I am writing a new authorization system and permission system for my multi tenant rails 3 app.
I need to have guests, basic users, site owners, site owners can have users, multi site owners with users and also admin users.
I am wondering what everyone would use for this setup ?
Devise, Authlogic, Sorcery etc ?
Canacan, declarative_authorization etc ?
or any other gems that would fit better for this sort of system.
thanks a lot
Rick
I personally prefer devise with cancan. I have yet to find anything that I was not able to do with that combination.
What is the easiest and reliable way to add facebook login button to my rails 3 app?
I Currently have a User model with email and password_hash and password_salt
Are there any good gems that make this easy in rails3?
Are my only options OmniAuth and Devise? I am currently using authenticating from scratch method from railscasts: http://railscasts.com/episodes/250-authentication-from-scratch
OmniAuth is the easiest and fastest choice, in my experience. Devise is great but much more heavyweight if all you're planning to do is Facebook OAuth.