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)
-
0
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
-
0
Hey,
I had the same issue, this worked for me: https://github.com/abpframework/abp/issues/20145#issuecomment-2202052771
-
0
Hi,
Please let me know if the issue is resolved. I am closing the ticket if you want you can reopen it.
Thanks,