title: ADAL JS - Acquire token: Token Renewal Operation failed due to timeout
body: <p>I'm working in order to leverage the usage of the AD for authentication and authorization of several applications, and I'm currently studying how to implement said process.</p>
  
  <p>This is for a Web-Browser to Web-Application flow.</p>
  
  <p>I create an AuthenticationContext instance and use it to sign in, and that much functions normally. 
  (Code organization simplified for demo purposes)</p>
  
  <pre><code>this.adal = new AuthenticationContext({
      tenant: this.tenantId,
      clientId: this.clientId,
      redirectUri: this.redirectUri,
      callback: this.loginCallback,
      popUp: true
  });
  
  this.adal.login();
  </code></pre>
  
  <p>It is when I try to acquire a Token that the behaviour becomes fishy.
  It is relevant to say that this application's registry in the AD has the permission "Sign in and read user profile" on Microsoft Graph API.</p>
  
  <pre><code>this.adal.acquireToken("https://graph.microsoft.com", function(error, token) {
      console.log(error);
      console.log(token);
  });
  </code></pre>
  
  <p>The error is written to the console as follows: "Token renewal operation failed due to timeout"; whilest token is written as a null object. A brief look at the "Network" tab while inspecting the page with Chrome reveals such a resource:</p>
  
  <pre><code>authorize?response_type=token&amp;client_id=xxxxx&amp;resource=xxxxx&amp;redirect_uri=http://localhost:8080(.....)
  </code></pre>
  
  <p>The Status for said resource is 302.</p>
  
  <p>Got any clues? Thanks!</p>