Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ValidateToken Error - IDX10503: Signature validation failed #7809


User avatar
0
Tesfayekb created

Hi,

Please can you assist with regards to the token validation error below: swagger UI works, but unable to open the login page at all

Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException HResult=0x80131500 Message=IDX10503: Signature validation failed. Keys tried: '[PII is hidden]'. Exceptions caught: '[PII is hidden]'. token: '[PII is hidden]'. Source=System.IdentityModel.Tokens.Jwt StackTrace: at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at EthioAngOct7Demo.Web.Authentication.JwtBearer.EthioAngOct7DemoJwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken) in C:\Users\tesfa\OneDrive\Documents\WebDevelopment\EthioAngOct7\EthioAngOct7Demo\aspnet-core\src\EthioAngOct7Demo.Web.Core\Authentication\JwtBearer\EthioAngOct7DemoJwtSecurityTokenHandler.cs:line 40 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__6.MoveNext()


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    This won't affect your application, you can ignore it because you have both identity server and jwt enabled.

  • User Avatar
    0
    unidata created

    Hi @maliming!

    I have the same simtomps and the same problem, as i report at https://support.aspnetzero.com/QA/Questions/8018.

    Just ignoring the exception does not work because I cannot access the login page. An "InternalServerError" always appears on the angular page. This only happens to me with a project recreated from v7.2 to v8.0 with core 3. If I generate a demo project with v8 that works smoothly.

  • User Avatar
    0
    maliming created
    Support Team

    @unidata You can share a project that reproduces the problem. [email protected]

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.