Start a new topic

Cannot create a user?

I'm trying to use the API to create a user.


In the top bar, I select PUSH, and then enter /user/APPID/ HTTP/1.1/ (as the API guide suggests)


Then add the following headers:


Host : baas.kinvey.com

Authorization : Basic (USERNAME:PASSWORD) <-- This I used an encode64 to endcode it, also like the API guide suggests.

Content-Type: Application/json


and then in the body of the request:


{

     "username" : "user1",

     "password" : "test123"

}


However, I get invalid app credientials as a response? What am I doing wrong?

1 Comment

Hi Oli, only the app credentials (http://devcenter.kinvey.com/rest/guides/security#credentials) can be used to create users. To authenticate with app credentials using basic auth, use your app ID as the username, and your app secret as the password.

Reference: http://devcenter.kinvey.com/rest/guides/users#signup

 

Login or Signup to post a comment