title: Error on Authentication net 6 Unable to match key
body: <p>I got the next error:</p>
  <pre><code>IDX10501: Signature validation failed. Unable to match key: 
  kid: 'System.String'.
  Exceptions caught:
   'System.Text.StringBuilder'. 
  token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
     at Microsoft.IdentityModel.Tokens.InternalValidators.ValidateLifetimeAndIssuerAfterSignatureNotValidatedJwt(SecurityToken securityToken, Nullable`1 notBefore, Nullable`1 expires, String kid, TokenValidationParameters validationParameters, StringBuilder exceptionStrings)
     at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
     at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken&amp; validatedToken)
     at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
  </code></pre>
  <p>I'm using Net 6 on a api with keycloak, my local conf was
  <a href="https://i.stack.imgur.com/ig118.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ig118.png" alt="enter image description here" /></a>
  I have a public kid on RS256 but I don't know how to add it to JwtBearer configuration, I'm new on this</p>
  <p>I try add on appSettings like</p>
  <p><a href="https://i.stack.imgur.com/AiKR9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AiKR9.png" alt="enter image description here" /></a></p>
  <p>all of this is on dev options, I got the key from keycloak realm</p>