title: How to request additional claims for access token in identity server 4 / auth code flow?
body: <p>How do you request additional claims for the access token jwt in identity server 4 / auth code flow?  My custom profile service always shows RequestedClaimTypes of 0 during my auth code flow signin so the resulting access token jwt has my subject claim but no firstname, lastname, or email claim.</p>
  
  <p>Here are my requested scopes from the client:
  "TestApi openid profile email"</p>
  
  <p>Here is my client definition on identity server:</p>
  
  <pre><code> new Client {                    
                  ClientId = "authorizationCodeClient2",
                  ClientName = "Authorization Code Test",
                  ClientSecrets = {
                                          new Secret("secret".Sha256())
                                  },
                  Enabled = true,
                  AllowedGrantTypes = GrantTypes.Code,
                  RequireConsent = true,
                  AllowRememberConsent = false,
                  RedirectUris =
                  new List&lt;string&gt; {
                   "http://localhost:5436/account/oAuth2"
                  },                    
                  AllowedScopes = { "TestApi", "openid", "profile", "email" },
                  AccessTokenType = AccessTokenType.Jwt
              }
  </code></pre>
  
  <p>Using <a href="https://github.com/bayardw/IdentityServer4.Authorization.Code" rel="nofollow noreferrer">https://github.com/bayardw/IdentityServer4.Authorization.Code</a> for the test client.</p>