jos
2fa google authenticator? with Guardian
I thinking about to throw in 2fa into my application using Google Authenticator API.
Has someone here integrated 2fa nicely with Guardian?
Im looking where to start, write my own plug of go with ueberauth?
The idea is to do regular authentication with Guardian and then kick the application to a 2FA authentication page. But im not sure where to start ..
Most Liked
riverrun
I maintain a one-time password library that integrates with Ecto.
I haven’t used it with Guardian, so I can’t help you there. As for the workflow, I’m working on a guide to that at the moment - for another library I maintain. I’ll let you know when I get it ready.
OvermindDL1
Guardian has nodda at all to do with Google style 2fa. Guardian is a way to encode a JWT/Token for cross domain message passing, it is not an authentication thing.
You could do it in Ueberauth pretty easily though, it would fit in a strategy if using a library like what @riverrun has inside it.
svilen
I’m interested in implementing 2FA myself. I see it only as an extra step during login, not something to integrate with Guardian to verify on every request. E.g. if the token verification succeeds, then use Guardian to sign-in user. If someone could share a tutorial it will be much appreciated!
From the Guardian repo:
An authentication library for use with Elixir applications.
![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









