Skip to Content
0
Former Member
May 28, 2015 at 11:51 AM

Where do i configure the client_id and client_secret for rest webservices ?

580 Views

As described here: https://wiki.hybris.com/display/release5/OAuth+2.0 a call to the oauth token endpoint looks like this:

res = tokenURL.post(deadline: 30, payload:"client_id=${client_id}&client_secret=${client_secret} &grant_type=password&username=${username}&password=${password}".getBytes())

But where do i configure my client_id and client_secret ? With bogus values i get:

{ "errors": [ { "type": "BadClientCredentialsError", "message": "Bad client credentials" } ] }