-
Notifications
You must be signed in to change notification settings - Fork 9
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
phx.gen.auth ? #133
Comments
After watching Bruce's video, I think the area it can help us is session renewal and avoiding session fixation attacks. 💭 |
https://github.com/aaronrenner/phx_gen_auth I still want to investigate this and see if we can use it as the basis for the I would still prefer to keep auth code outside of our main application and thus a lot more re-usable. |
phx_gen_auth is now part of Phoenix since the 1.6 version. Not a bad prediction 😄
|
Yeah, it was inevitable and necessary that Phoenix would have an Auth generator built-in. 👍
|
@SimonLab if you have time, please share your experience of using |
I was not aware of the existence of this project: https://github.com/aaronrenner/phx_gen_auth
(until this evening when I was trying to catch up on Phoenix related YT videos ...)
From watching this intro by Bruce Tate: https://youtu.be/YlDO07P3oL0
The generator does inject a bunch of code into your project that you then have to maintain.
It does not give you a turnkey authentication scheme beyond email + password (i.e. no OAuth via Google/GitHub/etc.)
and does not hookup to any email sending provider.
It's very much "batteries not included" as you can see from this forum topic:
https://elixirforum.com/t/how-to-use-phx-gen-auth/31619
Obviously, if it has José's blessing https://github.com/dashbitco/mix_phx_gen_auth_demo
then it will become the defacto standard in the
Elixir
Communityand possibly even the inclusion into Phoenix 2.0. 💭 🤷
So I need to invest a couple of hours into trying to run this on
localhost
and see where the overlap is.And determine what to do about it. 🤔
I really wish this had all existed last yearwhen we were deciding how to handle
auth
in our App(s) ... 🙄As much as I would like to think that the code I've written in
auth
is "better" I must keep an open mind and if this generator is useful to us, I will determine how much work it is to use it.The text was updated successfully, but these errors were encountered: