Sorry, you need to enable JavaScript to visit this website.

You are here


2 posts / 0 new
Last post

Jamie's picture
by Jamie

Wondering if anyone has been able to get OAUTH working with using JSON only, current testing with Advanced Rest Client using either Header of Content-Type application/json or application/x-www-form-urlencoded, in the body  {   "scope":"NSMS"    "grant_type":"client_credentials",   "client_key":"KEY",   "client_secret":"secret", }   this is the return I get   { "error": "invalid_request", "error_description": "The request is missing a required parameter, includes unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed." }

Michelle's picture
by Michelle

Resolved: OAUTH using JSON

Hi jamie_3,

For you to get your access token, you are required to use application/x-www-form-urlencoded instead of a raw JSON for your body schema.

Make sure that you use the correct parameters (client_id, client_secret, grant_type, scope). Notice in your example, you used client_key instead of client_id. Please refer to this documentation for reference.

Hope that helps!

Michelle from TelstraDev

Log in or register to post comments