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

Update JWT infrastructure to include permissions in Access Token; add source_collector permission #573

Open
2 tasks
maxachis opened this issue Dec 31, 2024 · 0 comments
Labels
api back-end database fixed_in_dev This is merged into the dev environment and waiting to be merged into main security

Comments

@maxachis
Copy link
Contributor

Context

For the Source Collector app in data-source-identification, we've determined that rather than create a separate user system, we'll utilize the system we already have in this application!

Requirements

  • Currently, the JWT structure inside Data Sources relies on retrieving the user's permissions from the database after authentication, using the user's email.
    • Instead, we'll need to embed these permissions within the JWT when it's created at login. 1
  • Add a source_collector permission to the data sources app database -- we'll need to grant this to select users who we want to give access to the Source Collector App.

Tests

  • Some tests may need updated, but not clear which, at the moment.

Docs

  • API documentation should be unaffected.

Open questions

  • No open questions at this time.

Footnotes

  1. This has the added benefit of reducing the number of network requests we have to make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api back-end database fixed_in_dev This is merged into the dev environment and waiting to be merged into main security
Projects
None yet
Development

No branches or pull requests

1 participant