jos

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

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

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

svilen

Author of Concurrent Data Processing in Elixir

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.

:stuck_out_tongue:

Where Next?

Popular in Questions Top

nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31194 112
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52774 488
New

We're in Beta

About us Mission Statement