uranther

uranther

What combination of libraries do you use for your Phoenix web app for standard user authentication? There are a couple listed in the awesome-elixir list, notably, ueberauth.

What I am looking for is a basic user account (email/password), register, login/logout, forgot password, and roles/groups for ACL. I want an admin panel for managing users, too, but I realize I will probably have to build this out.

Most of what I see is for basic JSON Web Token (JWT) authentication for API backends or similar. So I am a little confused about the standard practice for user auth in a plain ol’ web app.

I bet this has been blogged about somewhere… :slight_smile:

Showing Posts 1 to 10

AstonJ

AstonJ

I will probably roll my own, but I’m interested in hearing what others have to say here.

Did you look at what’s in hex.pm btw? Basic_auth seems to be fairly popular.

uranther

uranther OP

I took a browse through hex.pm but didn’t see anything promising except authentic which doesn’t seem to be a real thing (the GitHub repo is an empty project). Basic_auth would be fine for the simplest apps, but what I am looking for is user account management and maybe even profiles.

I think you are right about roll-your-own, but I am still pretty new to Elixir/Phoenix, and not sure how to go about it.

AstonJ

AstonJ

Are you from a Ruby/Rails background? If so there is an excellent series on user authentication at Rails Casts - when I come to roll my own I hope to do something similar to that.

(Btw I have just added ‘Languages you are interested in’ and ‘Languages you have used’ fields to our profiles)

uranther

uranther OP

I am from the PHP Symfony/Laravel side of things, but I don’t have that much experience in either.

AstonJ

AstonJ

Ah right, well you’re in for a treat with Elixir and Phoenix then (no offence to any PHP developers :lol:)

With regards to your question, hopefully some others will chime in, but I would have thought watching a Laravel tut on auth should give you a fairly good idea on what you will need to implement in Phoenix, if not there is a very old Railscast on the topic that might be closer to Phoenix (this is just a guess as I’ve not learned any Phoenix myself yet).

Mandemus

Mandemus

A lot of the Phoenix blogs I see seem to use guardian. It’s also JWT based. The exception being the Trello clone tutorial. They appear to be rolling their own authentication system.

I get that Phoenix wants to remain authentication agnostic. However this makes me curious as the big feature in the next iteration of Phoenix is channel presence. Not sure how they plan to implement that without having any built-in conception of a user.

uranther

uranther OP

I found this Phoenix/Guardian example app which seems to have all I need. I am trying that out now.

World_Reactor

World_Reactor

I am working on a project myself and I am considering using Openmaize.

I found a great example which demos all the basic functionality you mentioned and more.

Hope this helps!

uranther

uranther OP

Great find! This looks a lot simpler to get setup.

sashaafm

sashaafm

uberauth/guardian seems to be very common and popular.

The Programming Phoenix book and other beginner friendly resources use Comeonin which has Bcrypt (not sure if it can be considered exactly the same as Guardian?). I’ve been using it in my project and it’s nice.

There’s also Basic Auth which I’ve used in a blog. It’s pretty simple and it’s just to setup an authentication form to access certain pages and resources (useful for a blog since only you want to access the create new post action and so on).

Where Next? Top

Trending in Discussions Top

sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
SyntaxSorcerer
This is the start of my Elixir learning journal/journey. I plan to share my journey in this thread and am open to all feedback, construct...
New
bartblast
This is where the projects in the Hologram Showcase get posted: apps built with Hologram and libraries made for it. New ones go up usuall...
New
budgie
Never used it. I know it’s well-liked by some and the authors have put a lot of work into it. Aside from that, is there a community cons...
New
karolina.curiosum
Hi everyone! This is our fourth edition. Last year, 1,000+ developers took part. The more of you who answer, the more useful the results...
New
fredwu
Over the years I’ve tried dozens of time tracking and invoicing apps, and Harvest was the only one I liked. Primarily due to its relative...
New
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
PJUllrich
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

Latest on Elixir Forum

Elixir Forum ❯

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews