Implement JWT based authentication in Elixir. The language which powers, in one way or another (ErLang) Whatsapp, Discord, Pinterest etc. We will be using Phoenix Framework, the fantastic MVC framework for developing backends and full stack projects in Elixir. Consider Phoenix more like Express of Node.js but way more cooler of course. Well, Elixir altogether is cooler than any other language I code but nevertheless, one thing at a time.
JWT Authentication with Elixir & Phoenix
JWT Authentication with Elixir & Phoenix is a 6-lesson 2 hours 54 minutes self-paced course by Udemy. Implement JWT based authentication in Elixir.
Course facts
- Lessons
- 6
- Duration
- 2 hours 54 minutes
- Level
- All levels
- Language
- English
- Updated
- Instructor
- Udemy
- Price
- Premium
Architecture
Users
Register User
Accept user details like "email", "password", "username" etc. and persist it in the db (PostgreSQL).
Password Hashing
Store irreversible one way hashed password in the db rather than storing the plain tet password, which would be a disaster if you ask me.
Login
Login based on "username" and "password". Validate password w.r.t password hash stored in the db and if everything matches up issue a JWT token for further interaction with the API (protected routes).
Get Authenticated User
Get back the authenticated user w.r.t to token passwed in the authorization header. But avoiding spitting back the password and fetching it altogether from the db, even though it is hashed it still does not make any sense.
Logout
Invalidating a JWT token by storing it against the "user_id" in the db. So that after log out with a particular token, that token can not be used again for accessing private routes. We did this since JWT tokens can not be destroyed they can only be expired when there time comes. So what happens when someone logs out before their token expires? Oxygen for thought.
Protected Routes
Implement private routes to maintain an access control list => what can be accessed and what not. For example, a non authenticated user (guest) should not have access to the following apis
Logout
Ping (an example of ping pong Get request to demonstrate private route mechanism).
etc...
Postman
Test the REST API with Postman along the way, while developing each route/api.
A lot more
We will be learning a lot more than written, about Elixir, Phoenix, PostgreSQL, and creating REST APIs altogether.
Who teaches JWT Authentication with Elixir & Phoenix? Udemy
Udemy is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.
Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.
What lessons are included in JWT Authentication with Elixir & Phoenix?
| # | Lesson Title | Duration | Access |
|---|---|---|---|
| 1 | Intro Demo | 06:08 | |
| 2 | Project Setup | 17:50 | |
| 3 | Password hashing and Registration | 28:39 | |
| 4 | Login and Issuing a JWT token | 36:04 | |
| 5 | Phoenix plugs and protected routes | 40:25 | |
| 6 | Logging out and invalidating a JWT token | 44:56 |
Get instant access to all 5 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.
Learn more about subscriptionWhat courses are similar to JWT Authentication with Elixir & Phoenix?
-
Updated 4mo agoThe Complete Elixir and Phoenix Bootcamp
By: Udemy, Stephen GriderElixir and Phoenix are two of the hottest technologies of 2017. Functional Programming? You will learn it. Phoenix with OAuth? Its here. Postgres for data sto17h 22m -
Updated 3y agoElixir & Phoenix for Beginners
By: KnowThen (James Moore)The above statement is conventional wisdom that I'm sure most of us programmers would generally agree with, but let me ask you this, do you think each of the 2017h 24m -
Updated 2y agoElixir for Programmers
By: Coding Gnome (Bruce Tate)But you want more. True mastery of Elixir comes from understanding the underlying idioms: functional programming, transformations, concurrency.7h 19m5/5 -
Updated 2mo agoProgramming Nerves
By: Alex Koutmos, Hugo BaraunaUnlock the world of embedded systems with Elixir and Nerves. Learn how to advance from simple projects to industrial solutions and develop unique IoT devices. -
Updated 2y agoMaster the Linux Command-Line & Bash Scripting
By: Gustavo PezziThis course is a comprehensive immersion into the command-line of Linux and other UNIX-like systems. We'll learn the most popular shell tools and introduce conc7h 56m -
Updated 2y agoDeveloping With Elixir/OTP
By: Pragmatic StudioPut Elixir and OTP into action as you build a concurrent, fault-tolerant application from scratch in this 6-hour video course from The Pragmatic Studio. If you'6h 42m5/5 -
Updated 1mo agoElixir for Programmers, Second Edition
By: Coding Gnome (Bruce Tate)Delve into Elixir and master its idioms, architecture, and tools. Learn to apply your knowledge to real projects in industrial development.8h 21m
More courses by Udemy
-
Updated 3y agoComplete C# Unity Game Developer 3D
This is the long-awaited sequel to the Complete Unity Developer - one of the most popular e-learning courses on the internet!30h 34m -
Updated 3y agoNest.js Microservices: Build & Deploy a Scaleable Backend
Nest.js is an incredible backend framework that allows us to build scaleable Nodejs backends with very little complexity. A Microservice architecture is a popul5h 39m5/5 -
Updated 3y agoThe HTML & CSS Bootcamp 2023 Edition
Brand new HTML & CSS course, just released in February 2023 Check out the promo video to see the beautiful, responsive projects we build in this course!37h 18m5/5 -
Updated 3y agoMicroservices with Node JS and React
Event-Based Architecture? Covered! Server side rendering with React? Yep. Scalable, production-ready code? Its here!54h 13m5/5 -
FreeClassic100 Days of Code - The Complete Python Pro Bootcamp for 2023
Watch the 100 Days of Code Python Pro Bootcamp free: 100 daily projects covering Python basics, web scraping, data science, automation and GUI apps.58h 35m5/5 -
Updated 3y agoReact - The Complete Guide
React: The Complete Guide by Maximilian Schwarzmüller — original 2022 edition covering React hooks, Redux, Context API, Next.js basics.47h 42m5/5