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

Revisit authorization of protected endpoints #155

Open
mtw812 opened this issue Jul 30, 2021 · 0 comments
Open

Revisit authorization of protected endpoints #155

mtw812 opened this issue Jul 30, 2021 · 0 comments
Labels

Comments

@mtw812
Copy link
Collaborator

mtw812 commented Jul 30, 2021

Some of the admin endpoints and those used by dashboard should be accessible only by admins who are logged in. Code in backend/middleware/auth.js makes use of jwt token returned upon successful authentication. We should use it consistently for all endpoints that need protection.

Currently, questionnaire answers are posted by users who are not authenticated. We should come up with a mechanism to validate these are legitimate requests from our UI.

@mtw812 mtw812 added the backend label Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant