Reputation: 823
Issue: after upgrading from .NET 7 to .NET 9, my application invalidates JWT tokens, leading to authentication failures. Now, I am unable to log in, as the API consistently returns HTTP "401 - Unauthorized" errors.
Symptoms:
Question: has anyone encountered a similar issue after upgrading to .NET 9? What changes might be affecting JWT authentication?
Error message as response from JWT authentication:
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'.
Upvotes: 0
Views: 45