Houdini / two_factor_authentication

Two factor authentication extension for Devise
MIT License
400 stars 267 forks source link

ActiveAdmin Integration #45

Open clarakwan opened 9 years ago

clarakwan commented 9 years ago

Just wondering what would be the best way to hook this into activeadmin for an admin user?

Houdini commented 9 years ago

Please, check this branch: https://github.com/Houdini/two_factor_authentication/tree/for_activeadmin

It's not the last version, but idea is simple. You have just to rename :)

SergRain commented 9 years ago

At first time I try to implement it a got diff errors. For now -- no error on loginning to AA (I got code genereted for user in db) but i still go to admin panel just with login and password -- no second step auth :( Any advice? (active admin from master branch)

maia commented 8 years ago

@Houdini I'm looking forward into integrating this gem into my app (which is using ActiveAdmin 1.0.0pre2). As the branch you linked is a few years old and many commits behind master, would it be possible to add the explanation to the readme, or support ActiveAdmin in the master branch too?

When comparing branches it seems like I'd have to fork master and change a few lines to integrate it, but that feels cumbersome, and even then I'm unsure if it will also work with ActiveAdmin 1.x, and not the 'old' 0.6 versions.

Thanks a lot!

Houdini commented 8 years ago

@maia It's possible, but I don't know to long does it take. Problem is that it's very hard to make same code work for both general purpose and AA. But I should check new version of AA