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

Modify API key generation for admins #168

Open
powersaudrey25 opened this issue Apr 9, 2024 · 0 comments
Open

Modify API key generation for admins #168

powersaudrey25 opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request W3 Medium Difficulty

Comments

@powersaudrey25
Copy link
Contributor

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:

  • API keys field added to provider
  • API keys field removed from the provider user
    The idea here is that we can associated a key with a provider and through our user_provider join table we can grab the api keys through the provider user if needed.

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

@powersaudrey25 powersaudrey25 added enhancement New feature or request W3 Medium Difficulty labels Apr 9, 2024
@powersaudrey25 powersaudrey25 self-assigned this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request W3 Medium Difficulty
Projects
None yet
Development

No branches or pull requests

1 participant