on 09-11-2018 8:22 AM
Hello,
I am using hybris 6.7 and installed locally with OCC. I am trying to access the cart data for specific user using OCC url which requires the token.
For token I used the below url to generate but getting some error (see the screen shot for error).
https://localhost:9002/rest/v2/oauth/token?grant_type=password&username=abcd&password=1234512345
Any help would be appreciated on how to generate the token that can be used to access the cart data for the user.
Here is the cart data url and this url require the access token
https://localhost:9002/rest/v2/electronics/users/abcd/carts
![alt text][1]
Thanks for your reply Robert.
I tried this ulr also..
When I try the url getting the below error...
Error: SSL Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
Do I need to add outh2 related extension localextensions.xml? If so what are the extension that I need to add?
See the screen shot for error.. ![alt text][1]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem you are facing is that all requests on /rest/v2 are expecting base site as next url parameter. To get token you need to call (a POST request)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.