Replying to an earlier post

@silverpill @julian It’s working for me too. I did not realize more implementations were not going to include alg parameter. I do not have a good way of deriving alg from the public key so the only thing I can do is assume rsa-v1_5-sha256 if it’s missing. I know that’s not great, but maybe we should all just agree to include alg?

I guess @Edent feels the same way.

nokoto.org/user/3/posts/1135

Replying to @⁨mradcliffe@nokoto.org⁩

@mradcliffe @julian @Edent Agreed - my implementation adds the alg parameter.

But if I remember correctly, relying on algorithm ID alone is not always safe, and the key type should also be validated.

https://portswigger.net/web-security/jwt/algorithm-confusion

portswigger.netAlgorithm confusion attacks | Web Security AcademyAlgorithm confusion attacks (also known as key confusion attacks) occur when an attacker is able to force the server to verify the signature of a JSON web ...