title: AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'
body: <p>I use this library <a href="https://github.com/AzureAD/azure-activedirectory-library-for-cordova" rel="nofollow noreferrer">https://github.com/AzureAD/azure-activedirectory-library-for-cordova</a> , This is how I have written code :</p>
  
  <pre><code>document.addEventListener("deviceready", () =&gt; {
  let authContext = new Microsoft.ADAL.AuthenticationContext("https://login.windows.net/(tenant_id)");
  console.log("@login : TokenAsync");
  var uri = "&amp;client_secret=(value)";
  authContext.acquireTokenAsync((resourceurl), (client_id), (redirecturi), this.vEmail, encodeURI(uri))
  .then((res) =&gt; {
  console.log(res);
  console.log("Token acquired: " + res.accessToken);
  console.log("Ex acquired: " + res.expiresOn);
  }, reject =&gt; {
  console.log(reject);
  }); }, false);
  </code></pre>
  
  <p>i had try using extraQueryParameters to add client_secret, but the error still same :</p>
  
  <blockquote>
    <p>AADSTS70002: The request body must contain the following parameter:
    'client_secret or client_assertion'.</p>
  </blockquote>
  
  <p>how i add the client_secret ? or there's any alternative solution?</p>