{"repo":"dwyl/auth_plug","free":true,"listed":false,"github":"https://github.com/dwyl/auth_plug","clone":"git clone https://github.com/dwyl/auth_plug.git","description":"🟢 auth_plug lets you seamlessly add authentication to your Phoenix App with ONE Environment Variable™ in less than 2 minutes! 🚀","language":"Elixir","stars":37,"topics":["auth0","authentication","elixir","jwt","phoenix","phoenix-framework"],"license":"GPL-2.0","category":"auth-billing-email","readme_excerpt":"auth plug The Elixir Plug that seamlessly handles all your authentication/authorization needs. - auth plug - Why? 🤷 - What? 🔐 - Who? 👥 - How? 💡 - 1. Installation 📝 - 2. Get Your AUTH API KEY 🔑 - 2.1 Save it as an Environment Variable - 3. Add AuthPlug to Your router.ex file to Protect a Route 🔒 - Explanation - 4. Attempt to view the protected route to test the authentication! 👩‍💻 - That's it!! 🎉 - Optional Auth - Using with LiveView - Using with an API - Documentation - Development - Clone - Available information - Testing / CI - Recommended / Relevant Reading Why? 🤷 Frustrated by the complexity and incomplete docs/tests in existing auth solutions , we built auth plug to simplify our lives. We needed a way to minimise the steps and code required to add auth to our app(s). With auth plug we can setup auth in any Elixir/Phoenix App in less than 2 minutes with only 5 lines of config/code and one environment variable . What? 🔐 An Elixir Plug ( HTTP Middleware ) that a complete beginner can use to add auth to a Phoenix App and understand how it works. No macros/behaviours to use ( confuse ). No complex configuration or \"implementation\". Just a basic plug that uses Phoenix Sessions and standards-based JSON Web Tokens (JWT). Refreshingly simple. The way auth should be done. Edit this diagram: docs.google.com/presentation/d/1PUKzbRQOEgHaOmaEheU7T3AHQhRT8mhGuqVKotEJkM0 auth plug protects any routes in your app that require authentication. auth plug is just 57 lines of ( si","default_branch":null,"files":null,"tree":[],"storefront":"/r/dwyl","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dwyl/auth_plug/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}