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

Add support for token-based access to the API #32

Open
ka7eh opened this issue Nov 3, 2021 · 0 comments
Open

Add support for token-based access to the API #32

ka7eh opened this issue Nov 3, 2021 · 0 comments
Labels
api enhancement New feature or request

Comments

@ka7eh
Copy link
Member

ka7eh commented Nov 3, 2021

Users should be able to sign up, create tokens, and use that token to access the API.

We don't need to change any endpoint for now to make the token mandatory, but we can have a dummy endpoint to test the token support. The token support should be added to endpoints as a FastAPI injectable dependency.

The reason for this is to see (and maybe control) how much data is being fetched from the API by different users and services.

Update: we can enable the token support for endpoints that return all records, e.g. /species/all.

@ka7eh ka7eh added api enhancement New feature or request labels Nov 3, 2021
@Rashmil-1999 Rashmil-1999 self-assigned this Nov 23, 2021
@dhruvmehtadm dhruvmehtadm reopened this Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants