Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT - more than 2 filters example #7

Open
pr130 opened this issue Feb 27, 2019 · 5 comments
Open

JWT - more than 2 filters example #7

pr130 opened this issue Feb 27, 2019 · 5 comments
Assignees
Labels
blocked currently cannot be fixed due to external dependencies strategy::jwt

Comments

@pr130
Copy link
Collaborator

pr130 commented Feb 27, 2019

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 pr130 self-assigned this Feb 27, 2019
@pr130
Copy link
Collaborator Author

pr130 commented Mar 1, 2019

related : #8

pr130 pushed a commit that referenced this issue Mar 2, 2019
pr130 pushed a commit that referenced this issue Mar 2, 2019
@pr130
Copy link
Collaborator Author

pr130 commented Mar 11, 2019

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

pr130 pushed a commit that referenced this issue Mar 12, 2019
@pr130 pr130 added wontfix This will not be worked on blocked currently cannot be fixed due to external dependencies labels Mar 12, 2019
@pr130
Copy link
Collaborator Author

pr130 commented Mar 12, 2019

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

@jandix
Copy link
Owner

jandix commented Mar 18, 2019

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

@pr130
Copy link
Collaborator Author

pr130 commented Mar 25, 2019

related: rstudio/plumber#108

@pr130 pr130 removed the wontfix This will not be worked on label Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked currently cannot be fixed due to external dependencies strategy::jwt
Projects
None yet
Development

No branches or pull requests

2 participants