title: How to pass created user claims to client
body: <p>I have created multiple claims that sit in the <code>AspNetUserClaims</code> table for identity and have assigned them to my user id. </p>
  
  <p>I am currently trying to get these to pull through in the list of claims I receive in my client application.</p>
  
  <p>I have managed to pull through all the roles from the <code>AspNetUserRoles</code> table by adding the 'roles' scope to my client identity settings and then also in identity configuration (using the EF database format a.k.a ConfigurationDbContext) created a record in the <code>IdentityResources</code> table which links to an identity claim called 'role'.</p>
  
  <p>This is working as expected. However, I am not getting any of my UserClaims I have created through, do I need to create another specific scope?</p>
  
  <p>Here is my client configuration:</p>
  
  <pre><code>services.AddAuthentication(options =&gt;
      {
          options.DefaultScheme = "cookie";
          options.DefaultChallengeScheme = "oidc";
      })
      .AddCookie("cookie")
      .AddOpenIdConnect("oidc", options =&gt;
      {
          options.Authority = "https://localhost:44335/";
          options.ClientId = "openIdConnectClient";
          options.SignInScheme = "cookie";
          options.ResponseType = "id_token";
          options.GetClaimsFromUserInfoEndpoint = true;
          options.Scope.Add("openid profile roles all_claims");
      });
  
  services.AddAuthorization();
  </code></pre>
  
  <p>this is how I'm checking what claims the user has:</p>
  
  <pre><code>var claims = ((ClaimsIdentity)User.Identity).Claims;
  </code></pre>
  
  <p>and it returns all roles and profile claims (e.g. preferred_username) just not those specified within the AspNetUserClaims table.</p>
  
  <p>For my client I have also set the property <code>[AlwaysIncludeUserClaimsInIdToken]</code> to true with no luck.</p>
  
  <p>Does anyone know what I'm missing to pass through the user claims?</p>