jordiee
AccessPass - Yet another authentication library
I have been working for the last couple weeks on an authentication library that I have enjoyed using in my own personal projects. I would like to hear other peoples opinions!
https://github.com/jpiepkow/accesspass
https://medium.com/@jpiepkow/accesspass-yet-another-elixir-authentication-library-7ea59734a49
Trending in Announcing
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly.
One of i...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Other Trending Topics
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
We want to introduce a new native datatype to Erlang: native records. Although replacing all tuple records with native records is not our...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #performance










First 4 of 4 Posts
Jer7
I’ve read all the docs on AccessPass and it looks to do exactly what I’m trying to implement. I followed the crash course and I think I’m like 75% there, but I can’t work out how to get the AccessPath functions to work with my existing plug. Any suggestions would be great.
I’m new and admittedly pretty dense with Elixir/Phoenix, but I’m learning!
OvermindDL1
What code have you done so far and on which code are you stuck on and what would you like the code to look like when complete?
Jer7
Sorry for the delay, I also get to put out fires (figuratively)
I have the library installed and a route set up at /admin that returns ‘unauthorized’ when I load it, so it seems to be working. Where I’m lost is what to do now.
Do I need to set up a register/login form and POST the info through @conn? If so, I don’t seem to have proper routes set up for the AccessPass functions.
Am I not setting it up properly in the Router? Do I need to put/call the AccessPass lib files differently? I’ve been trough the docs a bunch of times and they just sort of end where I’m stuck.
My router.ex:
My routes:
Thanks for your time. I like alot about Elixir, but it’s a tough one to learn!
jordiee
First off thanks for using the AccessPass. AccessPass handles all the API related stuff for user auth so you are correct in that you need to now use Login or Register endpoints to get an access token. AccessPass will then check any request you use the auth pipeline on for a request header ‘access-token’ that is valid.
If your have any more questions feel free to ask!