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

Identify routes that need to be protected #106

Open
firepenguindisopanda opened this issue Sep 22, 2024 · 0 comments
Open

Identify routes that need to be protected #106

firepenguindisopanda opened this issue Sep 22, 2024 · 0 comments

Comments

@firepenguindisopanda
Copy link

As a backend developer
I need to identify routes that need to be protected
So that only authorized users can access sensitive resources

Details and Assumptions

  • Some routes in the application handle sensitive data or perform restricted actions.
  • These routes should only be accessible to authenticated or authorized users.
  • The authentication system is already in place and can be integrated with the route protection.
  • Unauthorized users should be redirected or receive an error when attempting to access protected routes.
  • Different roles might have different levels of access (admin, student)

Acceptance Criteria

Given a set of routes that handle sensitive operations
When an unauthorized user attempts to access a protected route
Then the user should be denied access and receive a 401 or 403 error

Given a set of routes that handle sensitive operations
When an authenticated but unauthorized user attempts to access a restricted route
Then the user should be denied access and receive a 403 error

Given a set of routes that handle sensitive operations
When an authorized user with the correct role attempts to access the protected route
Then the user should be granted access and the operation is performed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant