uiowaSEP2024 / 002_ImagePro

Image processing backend
1 stars 0 forks source link

Modify API key generation for admins #168

Open powersaudrey25 opened 4 months ago

powersaudrey25 commented 4 months ago

If this feature request related to a problem? Please describe.

Right now only admins may view the 'Generate API keys' page but the functionality needs to be updated. Admins should be able to generate api keys and associate them to PROVIDER which will in turn associate the api key to all the provider's users.

Alternatives Considered If Applicable

Rationale

This aligns better with our system as PROVIDERS are the ones processing the study and users of these providers may view these.

Implementation Ideas

Database changes will need to be made:

On the api keys page: Admins should be able to generate an api key AND associate to a specific provider. They should also be able to view all api keys in the database as well as who they are associated to.

Additional Context

lo-fi will be added