title: Not getting user "email" as a claim (from jwt token) back from identity server
body: <p>I have a client on IdentityServer ,which allows openid,profile and email scopes :</p>
  
  <pre><code>  return new[] {
              new Client
              {
                  ClientId = "TestWebApp",
                  ClientSecrets = new [] { new Secret("TestSecret".Sha256()) },
                  AllowedGrantTypes = GrantTypes.ResourceOwnerPasswordAndClientCredentials,
                  AllowedScopes = new List&lt;string&gt;{ StandardScopes.OpenId, StandardScopes.Profile,StandardScopes.Email },
              }
          };
  </code></pre>
  
  <p>I have defined following Identity resources as well,</p>
  
  <pre><code> public static IEnumerable&lt;IdentityResource&gt; IdentityResources()
      {
          return new IdentityResource[] {
                  new IdentityResources.OpenId(),
                  new IdentityResources.Profile(),
                  new IdentityResources.Email()                
              };
      }
  </code></pre>
  
  <p>In-case the claim is missing , I am adding email to user claims explicitly while creation:</p>
  
  <pre><code> await _userManager.AddClaimAsync(testUser, new Claim("email", user.Username));
  </code></pre>
  
  <p>Now from my login controller using <code>ResourceOwnerPasswordAndClientCredentials</code> I am sending authentication request : </p>
  
  <pre><code> var client = new OAuth2Client(new Uri("http://localhost:44322/connect/token"), "TestWebApp", "TestSecret");
   var requestResponse = client.RequestAccessTokenUserName(model.Email, model.Password, "openid profile email");
  </code></pre>
  
  <p>This works fine and I am getting the scopes back, but all of them are blank.</p>
  
  <p><a href="https://i.stack.imgur.com/uPuba.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uPuba.png" alt="enter image description here"></a></p>