sealr icon indicating copy to clipboard operation
sealr copied to clipboard

JWT - more than 2 filters example

Open pr130 opened this issue 5 years ago • 5 comments

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

pr130 avatar Feb 27 '19 08:02 pr130

related : #8

pr130 avatar Mar 01 '19 12:03 pr130

apparently, only one filter can be preempted. still looking for the root of this in the plumber code to submit an issue there.

pr130 avatar Mar 11 '19 16:03 pr130

this requires a change in plumber preempts. putting it back into the backlog

pr130 avatar Mar 12 '19 10:03 pr130

This problem could maybe be solved using subrouters. Unfortunately, there is no documentation on subrouters so far.

jandix avatar Mar 18 '19 10:03 jandix

related: https://github.com/trestletech/plumber/issues/108

pr130 avatar Mar 25 '19 19:03 pr130