title: Custom Claims are not being accessed in client with identityserver 4 .Net core 2.0
body: <p>I have following in my client startup.cs.</p>
  
  <pre><code>services.AddAuthentication(options =&gt;
              {
                  options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                  options.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
              })
              .AddCookie()
              .AddOpenIdConnect(options =&gt;
              {
                  options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme; // cookie middle setup above
                  options.Authority = AuthSetting["Authority"];  // Auth Server
                  options.RequireHttpsMetadata = false; // only for development 
                  options.ClientId = AuthSetting["ClientId"]; // client setup in Auth Server
                  options.ClientSecret = AuthSetting["ClientSecret"];
                  options.ResponseType = "code id_token"; // means Hybrid flow (id + access token)
                  options.GetClaimsFromUserInfoEndpoint = true;
                  options.SaveTokens = true;
                  //options.ClaimActions.MapJsonKey(ClaimTypes.Email, "email", ClaimValueTypes.Email);
                  //options.ClaimActions.Clear(); //https://stackoverflow.com/a/47896180/9263418
                  //options.ClaimActions.MapUniqueJsonKey("Aes", "Aes");
                  //options.ClaimActions.MapUniqueJsonKey("foo", "foo");
                  //options.ClaimActions.MapJsonKey("Aes", "Aes"); //https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/210
              });
  </code></pre>
  
  <p>Following is my Identityserver's startup.cs</p>
  
  <pre><code>services.AddIdentityServer(options =&gt;
                  {
                      options.Events.RaiseSuccessEvents = true;
                      options.Events.RaiseFailureEvents = true;
                      options.Events.RaiseErrorEvents = true;
                      options.Events.RaiseInformationEvents = true;
                  })
                  .AddInMemoryClients(Clients.Get())
                  .AddInMemoryIdentityResources(Resources.GetIdentityResources())
                  .AddInMemoryApiResources(Resources.GetApiResources())
                  .AddDeveloperSigningCredential()
                  .AddExtensionGrantValidator&lt;Extensions.ExtensionGrantValidator&gt;()
                  .AddExtensionGrantValidator&lt;Extensions.NoSubjectExtensionGrantValidator&gt;()
                  .AddJwtBearerClientAuthentication()
                  .AddAppAuthRedirectUriValidator()
                  .AddClientConfigurationValidator&lt;DefaultClientConfigurationValidator&gt;()
                  .AddProfileService&lt;ProfileService&gt;();
  </code></pre>
  
  <p>Following is my ProfileService.cs file.</p>
  
  <pre><code>public class ProfileService : IProfileService
      {
  
          public Task GetProfileDataAsync(ProfileDataRequestContext context)
          {
              // Processing
              var claims = new List&lt;Claim&gt;
              {
                  new Claim("Email", "someone2gmail.com"),
              };
  
              context.IssuedClaims.AddRange(claims);
  
              return Task.FromResult(0);
          }
  
          public Task IsActiveAsync(IsActiveContext context)
          {
              // Processing
              context.IsActive = true;
  
              return Task.FromResult(0);
          }
      }
  </code></pre>
  
  <p>I am not able to access Mail claim in client application. </p>
  
  <p>Checked many references. </p>
  
  <p>But none of them are working for me. Any guess that what might be missing?</p>
  
  <p>Using Identityserver4 with .Net core 2.</p>