Ruby on Rails two factor authentication with Devise - devise

I would like to setup two factor authentication with devise using Ruby on Rails 5. I've been using multiple gems with no luck what so ever. I was hoping if anyone out there could help me out. Thank you.

Related

Password expiration in 14 to 45 days using devise gem

We used a devise gem for Login functionality.
Now i want to implement the password expiration functionality.
So i got one devise gem i.e "devise_security_extension" on git hub.
I read this documentation for implementation of "devise_security_extension".
I tried the steps from documentation.But it is not working for me.
Can any one give step by step process to implement this "devise_security_extension" gem.
I spotted this question on the devise_security_extension issues page, I know it's been a while for you, but it might work. That leads to this fix, which I am going to try and implement tonight.
I'll report back if it helps

Find online users using devise and rails 3

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

Any gem similar to lockdown?

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.

authlogic connect tutorial

I am trying to add the facebook connect to an existing site in rails 3 that uses authlogic.
so that existing users can sign in via their facebook account (I'll find existing account via email id in facebook ) and new users can sign up using facebook too.
I am trying to use authlogic connect
( I found other alternative like omniauth , facebooker2 etc , omniauth plays well with devise but I dont want to move to devise & it seems only authlogic connect plays well with authlogic and rails3 )
But I am unable to find some proper tutorial where I could understand how to use it.
I looked at their project site :
https://github.com/viatropos/authlogic-connect
I used the little help on their site and tried to do a little.
Now when the facebook login button is clicked it goes to facebook page asks for all the permission and then it comes back to a url with code as a paramater. what do I do with the code param ?
Can someone suggest me a proper tutorial (not example) for using the authlogic connect
Thank you
I really gave up on authlogic connect.
Though it seems its the best solution, It integrates so much iwht the authlogic that I am unable to customize it.
I finally got omniauth working with authlogic , though a lot of things were manually done
railcasts simple omniauth authentication helped a lot,

App based Rails site

I plan to make an app based rails site. The rails webapplication should only have authentication and the rest of the functionality are "apps".
The basic idea is that users in the future could develop their own functions.
What is the best soultion for this? Should i write my apps as a plugin or gem?
Point me in right direction, thanks.
engines
ps - whilst the railscast is rails2.3, you can find your own way to more modern practices from there - rails_admin is a good gem which is written as an engine and does some of the stuff you probably want your code to do - have a look inside it's source for more info and google "rails 3" & "engines" for more info, i'm not so clued up on it myself