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

Authentication Shopping Cart App #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

simonesquad
Copy link

MVP

  • [x]

Add OAuth2 Security to the application
Add the necessary dependencies
Update User model as appropriate
Add findByName to the User Service with associated repository entry
Add the necessary helper functions
Add the SecurityUserService service
Add and update the necessary configuration files
The initial endpoints are affected by security as follows
Only admins can access routes /roles/**
Only admins can access routes /products/**
Only admins can access routes
POST /users/user
DELETE /users/user/{id}
PUT /users/user/{id}
GET /users/user/name/{userName}
GET /users/user/name/like/{userName}
GET /users/user
For the following routes, admins can access them and a user can access only their own data
PATCH /users/user/{id}
GET /users/user/{userId}
For the routes /carts/**
Remove the user/{userid} path variable from all the routes
Use the authenticated as the user to work with
Add new endpoints
http://localhost:2019/users/myinfo
Any authenticated user can access this endpoint and it will return the authenticated users information
http://localhost:2019/logout
Allows a user to logout of the system by removing their access token from the token store
Address CORS

Stretch Goals

  • [x]
    When working with Cart Items, give the client the option of sending a comment

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

Successfully merging this pull request may close these issues.

1 participant