Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement 2FA? #1171

Closed
fameoflight opened this issue May 16, 2018 · 7 comments
Closed

How to implement 2FA? #1171

fameoflight opened this issue May 16, 2018 · 7 comments

Comments

@fameoflight
Copy link

Any ideas how can I implement 2FA with devise token auth?

@MaicolBen
Copy link
Collaborator

@fameoflight Have you checked devise-two-factor ?

@fameoflight
Copy link
Author

@MaicolBen do you have any examples?

@fameoflight
Copy link
Author

I feel like 2fa and this are incompatible.

@fameoflight
Copy link
Author

For someone else looking for a solution. I modified is_valid_password? on User, model to parse the string as JSON and then getting password and OTP token separately.

@MaicolBen
Copy link
Collaborator

@fameoflight Sorry I don't have experience with 2fa, thank you for posting your findings!

@bettysteger
Copy link
Contributor

@fameoflight can you share an example, how you did it? were you using https://github.com/tinfoil/devise-two-factor ?

@bettysteger
Copy link
Contributor

If anyone needs this, i created a gist if you want to use devise-two-factor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants