-
Notifications
You must be signed in to change notification settings - Fork 208
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
user-order.controller.ts doesn't auth with @authenticate('jwt') #43
Comments
This is an authorization scenario which we are planning to implement after building the fundamental extensible authentication system. |
@jannyHou Sounds great, what's I can help. |
@lygstate Thank you for being interested to help! The story that tracks this change is loopbackio/loopback-next#1998, we are planning to add some abstractions in |
Before the work on the actual authorization is started, perhaps @lygstate can contribute the authentication changes we left out of February milestone? Cross-posting from loopbackio/loopback-next#1998:
|
@bajtos Yeah sounds good 👍 |
Hello, I am new to loopback4 and github in general. |
Hi @austin047, it's great to hear you are interested in helping out! We have a detailed guide showing how to fork loopback-next repository on GitHub, create a feature branch, etc. see https://loopback.io/doc/en/lb4/submitting_a_pr.html As for this particular task, you will need to make changes in the following files:
Good luck 🍀 |
Thanks. |
…e a new order Updated the create order method that handles post request to create a user order to authenticate against the current user before an order can be created, the client will have to pass the authentication token in the request header which will be authenticated before the order is created BREAKING CHANGE: For an order to be created the client must pass the authentication token in the request header, otherwise a 401 Unauthorized error will be generated feat loopbackio#43
…e a new order Updated the create order method that handles post request to create a user order to authenticate against the current user before an order can be created, the client will have to pass the authentication token in the request header which will be authenticated before the order is created BREAKING CHANGE: For an order to be created the client must pass the authentication token in the request header, otherwise a 401 Unauthorized error will be generated feat loopbackio#43
…e a new order Updated the create order method that handles post request to create a user order to authenticate against the current user before an order can be created, the client will have to pass the authentication token in the request header which will be authenticated before the order is created BREAKING CHANGE: For an order to be created the client must pass the authentication token in the request header, otherwise a 401 Unauthorized error will be generated feat loopbackio#43 Signed-off-by: austin047 <[email protected]>
…e a new order Updated the create order method that handles post request to create a user order to authenticate against the current user before an order can be created, the client will have to pass the authentication token in the request header which will be authenticated before the order is created BREAKING CHANGE: For an order to be created the client must pass the authentication token in the request header, otherwise a 401 Unauthorized error will be generated feat loopbackio#43 Signed-off-by: austin047 <[email protected]>
…e a new order Updated the create order method that handles post request to create a user order to authenticate against the current user before an order can be created, the client will have to pass the authentication token in the request header which will be authenticated before the order is created BREAKING CHANGE: For an order to be created the client must pass the authentication token in the request header, otherwise a 401 Unauthorized error will be generated feat loopbackio#43 Signed-off-by: austin047 <[email protected]>
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes Signed-off-by: Fuh Austin <austin047>
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes Signed-off-by: Fuh Austin <[email protected]>
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes Signed-off-by: Fuh Austin <[email protected]>
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes Signed-off-by: austin047 <[email protected]>
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes Signed-off-by: austin047 <[email protected]>
Client can create an order without passing the userId in the body of the request, the serve collects the userId from the url and compares against the authenticated user(Current User) and the creates the order for that user. ✅ Closes: loopbackio#43 refactor: 💡 remove debug console logs Remove console logs created for debug purposes Signed-off-by: Fuh Austin <[email protected]>
Closing as fixed. |
user-order.controller.ts doesn't auth with @authenticate('jwt'),
besides, doesn't check the userId
The text was updated successfully, but these errors were encountered: