title: Wso2 Api Manager - OAuth Token Error- OAuth application is not in active state
body: <p>I was trying to test publisher apis documented here "<a href="https://docs.wso2.com/display/AM210/apidocs/publisher/index.html#guide" rel="nofollow noreferrer">RESTful API for WSO2 API Manager - Publisher</a>"</p>
  
  <p>To execute any api i need a admin access toke. To generate that, it is advised to run following command :</p>
  
  <pre><code>curl -k -d "grant_type=password&amp;username=admin&amp;password=admin&amp;scope=apim:api_view" -H "Authorization: Basic SGZFbDFqSlBkZzV0YnRyeGhBd3liTjA1UUdvYTpsNmMwYW9MY1dSM2Z3ZXpIaGM3WG9HT2h0NUFh" https://127.0.0.1:8243/token
  </code></pre>
  
  <p>I replaced basic authorization with admin and password of admin user. I got following error when i attempted to execute it:</p>
  
  <pre><code>{
    "error": "invalid_client",
    "error_description": "Oauth application is not in active state."
  }    
  Status Code : 401 Unauthorized
  </code></pre>
  
  <p>please advise what is wrong here. Thanks.</p>