title: How to register REST client in WSO2 API Manager
body: <p>I've been looking through the doc of wso2 apim. 
  <a href="https://docs.wso2.com/display/AM1100/apidocs/store/index.html#guide" rel="nofollow">https://docs.wso2.com/display/AM1100/apidocs/store/index.html#guide</a></p>
  
  <p>And found the curl request:</p>
  
  <pre><code>curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -d @payload.json http://localhost:9763/client-registration/v0.9/register
  </code></pre>
  
  <p>With payload:</p>
  
  <pre><code>{
  "callbackUrl": "www.google.lk",
  "clientName": "rest_api_store",
  "tokenScope": "Production",
  "owner": "admin",
  "grantType": "password refresh_token",
  "saasApp": true
  }
  </code></pre>
  
  <p>But I got and 403 error response.
  As expected I should get the correct response payload like:</p>
  
  <pre><code>{
  "callBackURL": "www.google.lk",
  "jsonString":
  "{
  \"username\":\"admin\",
  \"redirect_uris\":\"www.google.lk\",
  \"tokenScope\":[Ljava.lang.String;@3a73796a,
  \"client_name\":\"admin_rest_api_store\",
  \"grant_types\":\"authorization_code password refresh_token iwa:ntlm
  urn:ietf:params:oauth:grant-type:saml2-bearer client_credentialsimplicit\"
  }",
  "clientName": null,
  "clientId": "HfEl1jJPdg5tbtrxhAwybN05QGoa",
  "clientSecret": "l6c0aoLcWR3fwezHhc7XoGOht5Aa"
  }
  </code></pre>
  
  <p>I have not idea what's going on, I just followed the doc above and without any changes.
  Will be appreciated if anyone can help.
  Thanks.</p>