satom99
Candy - Resource authorization for Phoenix
Dead simple resource authorization with only a couple plugs. Inspired by canary.
Repository: GitHub - satom99/candy: Resource authorization for Phoenix · GitHub
Contributions are more than welcome, as always!
Most Liked
satom99
I found myself copying this exact same code amongst multiple projects, so having it as a separate package made it handier
. I also figured I would share it so that others could have a look and possibly extract ideas they could extrapolate to their own set of authorization plugs.
As for the config, I work with a single Repo so that was fine for me. One could easily add a param to specify a repo per-plug call, or possibly have a get callback on the model/schema itself and go that way instead - but then again, this is where one could grab the published code and modify it as they see fit.
Popular in Announcing
Other popular topics
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
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








