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!
First Post!
hauleth
- Why do you assume that there will be only one
Repoin all applications running? - Why such simple functionality (call function with and pattern match on arguments) require whole library for that? With licensing, version management, and all that cruft required for using external code?
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
- #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
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










