News for hackers. Stuff that matters.
Re:Why the Elixir language has great potential by IanCal on Thursday December 22, 2016 @09:01AM (#13237260)
Last time I went to look at elixir it looked nice, is there an accepted user-mangement system for phoenix yet? User auth is a combination of the three things I least want to implement myself:

1. Security. Small non-obvious mistakes are easy to make and very important.

2. High visibility. Risky, and if it goes wrong it's a major thing your customers notice.

3. Dry. It's just not particularly interesting for me, it's certainly solved in other frameworks (e.g. devise). I'm aware this last point is extremely selfish of me, however.

Re:Why the Elixir language has great potential by BrianHV on Thursday December 22, 2016 @10:35AM (#13237887)
Because of the points you mentioned, I've been wondering why I haven't been able to find a framework-independent, open-source user management and authentication system. This seems like the sort of thing that should be solved in a standard way and not reinvented by every framework (or worse, application) that needs user management.

I've come across some paid services (e.g., stormpath, auth0) that seem to do what I'm talking about. It would be really nice if there were a free project along those lines though.

Re:Why the Elixir language has great potential by awinder on Thursday December 22, 2016 @11:22AM (#13238252)
Re:Why the Elixir language has great potential by iamveen on Friday December 23, 2016 @02:38PM (#13246780)
I have yet to use this for anything, so I can't vouch for it's quality, but it seems to be exactly what you are looking for.

http://www.keycloak.org/

Website blurb:

Add authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.

You'll even get advanced features such as User Federation, Identity Brokering and Social Login.

Re:Why the Elixir language has great potential by Can_Not on Saturday December 24, 2016 @02:17PM (#13251204)
I don't think I understood your question, but this might be helpful for people having issues in similar keyword spaces: https://github.com/iNeedThis/phoenix-starter
Re:Why the Elixir language has great potential by enraged_camel on Thursday December 22, 2016 @09:46AM (#13237514)
I use Coherence. It tries to be similar to Devise (of Rails fame).
Re:Why the Elixir language has great potential by xutopia on Thursday December 22, 2016 @10:46AM (#13237988)
Do you test your controllers? I'm trying to find some good documentation on how to do that but get warnings to use `build_conn` instead of `conn` when using the example here: https://github.com/smpallen99/coherence/wiki/Testing-with-Co...
Re:Why the Elixir language has great potential by jclem on Thursday December 22, 2016 @10:58AM (#13238098)
If you're getting that in a test, my guess is that you're not passing a context argument with `conn` in it to your test function (e.g. `test "foo", %{conn: conn} do`.

There's a deprecated `conn/0` function that you'll accidentally call instead if you forget to do this.

Re:Why the Elixir language has great potential by enraged_camel on Thursday December 22, 2016 @01:46PM (#13239365)
I don't generate my own controllers when installing Coherence. I just use the ones that come "out of the box."
Re:Why the Elixir language has great potential by behrendtio on Thursday December 22, 2016 @11:09AM (#13238163)
`conn` is the old version, newer versions of Phoenix use `build_conn`. Just use that
Re:Why the Elixir language has great potential by holtalanm on Thursday December 22, 2016 @09:39AM (#13237473)
I can attest that using Guardian is probably the best way to go so far with Phoenix. It worked great.
Re:Why the Elixir language has great potential by gregpardo on Thursday December 22, 2016 @09:10AM (#13237309)
Guardian is the most used. You can use Canary for authorization.