cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Base site auth doesn't exists

Former Member
0 Kudos
874

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]

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your reply Robert.

I tried this ulr also..

https://localhost:9002/authorizationserver/oauth/token?grant_type=password&username=abcd&password=12...

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]

Former Member
0 Kudos

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)

https://localhost:9002/authorizationserver/oauth/token?grant_type=password&username=abcd&password=12...