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

Repeated Error: Signature validation failed #3722


User avatar
0
bilalhaidar created

Hello, I keep on getting this error in the log file and I dunno where it is coming from.

How to fix it? Thanks

INFO  2017-08-15 01:06:12,952 [41   ] entication.JwtBearer.JwtBearerMiddleware - Failed to validate the token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyIiwibmFtZSI6ImFkbWluIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJlNzI5NTdjNi03MzhmLTEyYmMtNzllOS0zOWUwNTAxZjViYTkiLCJyb2xlIjoiQWRtaW4iLCJodHRwOi8vd3d3LmFzcG5ldGJvaWxlcnBsYXRlLmNvbS9pZGVudGl0eS9jbGFpbXMvdGVuYW50SWQiOiIxIiwianRpIjoiYzE1ZWYzYWItNWEwMi00YWI5LWFmYmMtNzg5MjRmNDA0YzM2IiwiaWF0IjoxNTAyNzQ4MzY5LCJuYmYiOjE1MDI3NDgzNjksImV4cCI6MTUwMjgzNDc2OSwiaXNzIjoiRHJjQXBwIiwiYXVkIjoiRHJjQXBwIn0.kUWfPsixYzjRKcmBsRLsv-WsMiNkssukZlRn-NSqDAY.
Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException: IDX10503: Signature validation failed. Keys tried: 'Microsoft.IdentityModel.Tokens.RsaSecurityKey , KeyId: d0fb06732fef51dd6712680ec9c1ae17
'.
Exceptions caught:
 ''.
token: '{"alg":"HS256","typ":"JWT"}.{"sub":"2","name":"admin","AspNet.Identity.SecurityStamp":"e72957c6-738f-12bc-79e9-39e0501f5ba9","role":"Admin","http://www.aspnetboilerplate.com/identity/claims/tenantId":"1","jti":"c15ef3ab-5a02-4ab9-afbc-78924f404c36","iat":1502748369,"nbf":1502748369,"exp":1502834769,"iss":"DrcApp","aud":"DrcApp"}'.
   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 Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__1.MoveNext()
INFO  2017-08-15 01:06:12,952 [41   ] entication.JwtBearer.JwtBearerMiddleware - Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Keys tried: 'Microsoft.IdentityModel.Tokens.RsaSecurityKey , KeyId: d0fb06732fef51dd6712680ec9c1ae17
'.
Exceptions caught:
 ''.
token: '{"alg":"HS256","typ":"JWT"}.{"sub":"2","name":"admin","AspNet.Identity.SecurityStamp":"e72957c6-738f-12bc-79e9-39e0501f5ba9","role":"Admin","http://www.aspnetboilerplate.com/identity/claims/tenantId":"1","jti":"c15ef3ab-5a02-4ab9-afbc-78924f404c36","iat":1502748369,"nbf":1502748369,"exp":1502834769,"iss":"DrcApp","aud":"DrcApp"}'.

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

    Hi,

    This is not an error but an informative log message. You can check this issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/387">https://github.com/aspnetzero/aspnet-ze ... issues/387</a>.

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Thanks. I checked it. Seems it is going to be fixed in future releases.

    Given the fact it is always complicated to upgrade an existing app with a new release of Abp and AbpZero, can you offer workaround steps to apply locally?

    by the way, is this related to Identity Server or something custom from Abp?

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bilalhaidar,

    This seems to be related to Identity Framework. There are some suggestions for automating upgrading your project with latest version on forum, you can search and check those topics but it's not a straight forward job to do.

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Thanks a lot