sealr
sealr copied to clipboard
JWT - more than 2 filters example
maybe we can do mulitple filters to allow for more granular authorization? idea:
- in authenticate route, add a "scope" to claims
- one filter for general scope
- one filter for "admin" scope
related : #8
apparently, only one filter can be preempted. still looking for the root of this in the plumber code to submit an issue there.
this requires a change in plumber preempts. putting it back into the backlog
This problem could maybe be solved using subrouters. Unfortunately, there is no documentation on subrouters so far.
related: https://github.com/trestletech/plumber/issues/108