title: oidc-client-js is not getting claims correctly from Identity Server 4
body: <p>I have a local instance of Identity Server 4 and I'm trying to follow <a href="http://docs.identityserver.io/en/release/quickstarts/7_javascript_client.html" rel="noreferrer">this guide</a> to create a Javascript client. This uses the <a href="https://github.com/IdentityModel/oidc-client-js" rel="noreferrer">oidc-client-js</a> library and I'm using the signin popup approach so my sign in event handler looks like this:</p>
  
  <pre><code>signin(e) {
      e.preventDefault();
      this.oidcUserMgr.signinPopup({state:'some data'}).then(function(user) {
          console.log("signed in", user.profile);
      }).catch(function(err) {
          console.log(err);
      });
  } 
  </code></pre>
  
  <p>Authentication appears to work fine - I'm redirected to my Identity Server which accepts the client request, authenticates my sign in and returns me to the client app. However, the docs say that <code>user.profile</code> object in the above code should contain the user claims but it doesn't. This is the <code>use.profile</code> I get back:</p>
  
  <p><a href="https://i.stack.imgur.com/wwOfm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wwOfm.png" alt="enter image description here"></a></p>
  
  <p>The <code>sub</code> property is the correct ID of the user just authenticated. But my Identity Server also issued claims in response to the other scopes my client requested (<code>profile</code> and <code>email</code>) so I should be seeing claims such as <code>name</code>, <code>preferred_username</code>, <code>email</code> etc). I can observe these claims being issued when debugging my <code>IProfileService</code> implementation in IS4. Furthermore, if I use the <code>access_token</code> returned with the user object to make a request to another API running locally (an ASP.NET Web API) I do see these claims in <code>this.User.Claims</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/K8stJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/K8stJ.png" alt="enter image description here"></a></p>
  
  <p>So how can I get hold of these claims in my Javascript code?</p>