Skip to Content
0
Former Member
Jun 28, 2016 at 07:57 AM

OCC API OAuth 2.0 access tokens error

502 Views

We have exposed few of the API’s like registration over OCC Layer. These API’s are secured using OAuth 2.0 access tokens. When we call get token api we get 400 bad request as below.

"https://localhost:9002/lynxcommercewebservices/oauth/token?client_id=trusted_client&client_secret=dgdfgdfgdfg&grant_type=client_credentials" resulted in 400 (Bad Request); invoking error handler.

All of the get token calls fail with above exception. The way to resolve this issue is to delete the token and and restart the application. But the root cause is unknown. Did anybody face this issue? Any help in this regards is much appreciated.