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

API authentication, add users to replace basic auth #18

Open
plutov opened this issue Sep 13, 2024 · 6 comments
Open

API authentication, add users to replace basic auth #18

plutov opened this issue Sep 13, 2024 · 6 comments

Comments

@plutov
Copy link
Owner

plutov commented Sep 13, 2024

There are 2 types of API routes:

  • Private: for admins. Starts with /app
  • Public: for respondents. Starts with /surveys

While public one can be open, the private is better to be protected as it can be used to manage the surveys.

Proposal:

  • Introduce JWT-based auth for these endpoints
  • Frontend to retrieve the JWT token and use it for requests
  • That means we probably need to introduce user(s) instead of basic auth
@Rathish-Rajendran
Copy link

Hi plutov,
I would love to implement this feature.
Can you kindly elaborate on what is exactly needed with more details?

Thanks!

@syfuuu
Copy link

syfuuu commented Sep 29, 2024

@plutov i can work on this. Please mention by username if @Rathish-Rajendran didn't pick it up.

@Rathish-Rajendran
Copy link

@plutov can you kindly elaborate on this feature?

@plutov
Copy link
Owner Author

plutov commented Oct 3, 2024

Sure, there is an admin console to manage surveys and see the responses, it is already protected by simple basic http auth, but API endpoints are not. My idea is to have JWT-based authentication there.

@plutov plutov changed the title API authentication API authentication, add users to replace basic auth Oct 3, 2024
@Ibukun-tech
Copy link

can I be assigned this @plutov?
you want a security enhancement to the application by adding JWT-based authentication to the API endpoints.

@plutov
Copy link
Owner Author

plutov commented Oct 5, 2024

@Ibukun-tech sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants