title: Server Get a refresh token with an access token using WSO2 Identity Server
body: <p>I am making the following curl call: </p>
  
  <pre><code>curl -k -d "grant_type=client_credentials" -H "Authorization: Basic &lt;Encoded ID &amp; Secret&gt;)" https://MyIDPUrl/token
  </code></pre>
  
  <p>I get a response of:</p>
  
  <pre><code>{
      "access_token":"MyAccessTokenHere",
      "scope":"am_application_scope default",
      "token_type":"Bearer",
      "expires_in":3212
  }
  </code></pre>
  
  <p>It all seems fine, except that I am not getting a refresh token.  I tried adding <code>&amp;scope=openid</code> to the url, and that added an id_token to the response, but not a refresh token.</p>
  
  <p><strong>How can I get a refresh token with WSO2?</strong></p>