title: Bearer error="invalid_token", error_description="The signature is invalid"
body: <p>I have a angular application that request a token from azure. The login went well and I get a token. This token is now send from the angular app to a net core webapi application. Net core should verify this token but failed. I think the webapi should also contact azure to validate the token because it has no knowledge of the private and public key that is needed to verify the token.</p>
  
  <p>At the moment it is not clear why it is failing. Both angular app and the webapi are running local on my computer.</p>
  
  <p>The error is: <code>Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException: 'IDX10500: Signature validation failed. No security keys were provided to validate the signature.'</code></p>
  
  <p>my net core 2 config is:</p>
  
  <pre><code>var tokenValidationParameters = new TokenValidationParameters
              {
  
                  RequireExpirationTime = true,
                  RequireSignedTokens = false,
                  ValidateIssuerSigningKey = true,
                  ValidateIssuer = true,
                  ValidIssuer = "8d708afe-2966-40b7-918c-a39551625958",
                  ValidateAudience = true,
                  ValidAudience = "https://sts.windows.net/a1d50521-9687-4e4d-a76d-ddd53ab0c668/",
                  ValidateLifetime = false,
                  ClockSkew = TimeSpan.Zero
              };
              services.AddAuthentication(options =&gt;
              {
                  options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme;
  
              }).AddJwtBearer(options =&gt;
              {
  
                  options.Audience = "8d708afe-2966-40b7-918c-a39551625958";
                  options.ClaimsIssuer = "https://sts.windows.net/a1d50521-9687-4e4d-a76d-ddd53ab0c668/";
                  options.RequireHttpsMetadata=false;
                  options.TokenValidationParameters = tokenValidationParameters;
                  options.SaveToken = true;
              });
  </code></pre>