odix67
Extending phoenix live_view using phx.gen.auth with MFA
I’m wondering if there exists a pattern or example to extend a live_view application which uses authentication generated by mix phx.gen.auth with a MFA mechanism, e.g. incorporating NimbleTOTP ?
I read a little bit on MFA in the live view socket documentation, but doesn’t help me a lot, any suggestions to this kind of problem ?
Marked As Solved
adw632
Yes quite off topic.
The context of MFA here is Multi-Factor Authentication using TOTP.
It is not about providing runtime session options using Module, Function, Arity.
Also Liked
LostKobrakai
I‘d always make 2FA a setting to enable/setup after registration and if it shall be „required“ lock features behind that being done for a user. That way registration doesn‘t get unnecessarily complex.
adamu
I believe the use of MFA to refer to a callback tuple is frowned upon in Elixir docs. At least I’ve had review comments saying so. It looks like that one crept in in a recent addition Document socket session options at runtime by aerosol · Pull Request #2715 · phoenixframework/phoenix_live_view · GitHub
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
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








