Error: invalid client – no client id supplied
-
Hello,
i want to use the oauth2 to make posts with my Java application.
But i’m struggling at the last point described here:
Access Token Request
https://wp-oauth.com/kb/using-authorization-code/I get the code but when i try to make the “final” request, i only get the following error:
{“error”:”invalid_client”,”error_description”:”No client id supplied”}But I set it:
post.setHeader(“Authorization”, “Basic ” + Base64Encode(clientId+”:”+secret));The Post params are:
nameValuePairs.add(new BasicNameValuePair(“grant_type”, “authorization_code”));
nameValuePairs.add(new BasicNameValuePair(“code”, code));Did I miss sth?
I appreciate any help, thanks in advance
Don’t mind, I had an error in the URL
The topic ‘Error: invalid client – no client id supplied’ is closed to new replies.