I am facing an issue while validating Okta token using JWTTokenValidator.
For ex token is : eDue41r18EPlCG8JwTAxYAv15jfInh$$$$$$9hf6H6XBZYSradVOSk9A7wvwB3oJT-mlXT&&&&&&orwa3SIRffZCKunOUKiA*dyvlx0BQutl3YYdfuBzk4OlhqNlump@@@@@JARQg
Case 1 : if i change here last character greater than g then Jwt validation got success(i.e unexpectable result).
Case 2: if i change last character less than g then Jwt validation got failed (i.e correct validation)
Okta jwt verifier version: '0.5.0'
I found two answers:
a. https://community.auth0.com/t/jwt-token-validation-issue/37911
b. JWT token decoding even when the last character of the signature is changed
Questions raised for the above solution (b) this solution suggests that it is algorithm specific -- If this is algorithm specific then how can we finalise on the Algorithm to be used and will arrival of new algorithm in future impact our algorithm ? -- Why this is not generic ? Expectation: Validation should fail for both case 1 and case 2. i.e if I replace any character in the token it should fail the validation