Ends in:
1 DAY
4 HRS
12 MIN
8 SEC
Ends in:
1 D
4 H
12 M
8 S
Open Closed

issue after upgrade to Abp 8 #7914


User avatar
0
ramkumar.subramanian created

Below is the error message : after upgrade to abp 8.2 Please advise

Timestamp - 09/17/2024 06:55:36 +00:00 | Level - Information | Message Failed to validate the token. {"EventId":{"TypeTag":null,"Properties":[{"Name":"Id","Value":{"Value":1}},{"Name":"Name","Value":{"Value":"TokenValidationFailed"}}]},"SourceContext":{"Value":"Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler"},"RequestId":{"Value":"0HN6MOMFQJUU0:00000001"},"RequestPath":{"Value":"/api/litmusUserInfo/getUsersLanguage"},"ConnectionId":{"Value":"0HN6MOMFQJUU0"}} Exception - Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'. ---> System.MissingMethodException: Method not found: 'Byte[] Microsoft.IdentityModel.Tokens.Base64UrlEncoder.UnsafeDecode(System.ReadOnlyMemory`1


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    Have you followed migration guides while migrating to v8? Please check https://abp.io/docs/latest/release-info/migration-guides/index?_redirected=B8ABF606AA1BDF5C629883DF1061649A

    or else Please check for packages whether installed or not and also check their versions whether updated or not -

    Microsoft.IdentityModel.Tokens Microsoft.IdentityModel.JsonWebTokens System.IdentityModel.Tokens.Jwt

    Thanks

  • User Avatar
    0
    SybrenVanGastel created

    Hey,

    I had the same issue, this worked for me: https://github.com/abpframework/abp/issues/20145#issuecomment-2202052771

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    Please let me know if the issue is resolved. I am closing the ticket if you want you can reopen it.

    Thanks,

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19