title: JWT token authentication fails with message "PII is hidden"
body: <p>in my .net core 2.2 microservice, I try to extract claims from a JWT token to do some authorization. authentication is done on another part of the system so I don't need to do it at this point. </p>
  
  <p>I am using this code in the Startup.cs:</p>
  
  <pre><code>  services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
              .AddJwtBearer(options =&gt;
              {
                  var signingKey = Encoding.UTF8.GetBytes("SECRET_KEY");
                  options.TokenValidationParameters = new TokenValidationParameters
                  {
                      ValidateIssuer = false,
                      ValidateAudience = false,
                      IssuerSigningKey = new SymmetricSecurityKey(signingKey)
                  };
              });
  </code></pre>
  
  <p>On the controller I have this code:</p>
  
  <pre><code>    [Authorize]
      [HttpPost]
      public async Task&lt;ActionResult&lt;CreateResponse&gt;&gt; Create()
      {
          var userIdClaim = HttpContext.User.Claims.Where(x =&gt; x.Type == "empId").SingleOrDefault();
          return Ok($"Your User ID is {userIdClaim.Value} and you can create invoices!");
      }
  </code></pre>
  
  <p>I always get this error message and "Unauthorized" response:</p>
  
  <blockquote>
    <p>Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException: IDX10503: Signature validation failed. Keys tried: '[PII is hidden]'.
    Exceptions caught:
     '[PII is hidden]'.
    token: '[PII is hidden]'.</p>
  </blockquote>