4 ms·
I don't understand why you need the alg property at all. I mean, you are the one issuing the token so you definitely know what algorithm is used in the back-end
by Kiro 12y ago
I don't understand why you need the alg property at all. I mean, you are the one issuing the token so you definitely know what algorithm is used in the back-end. Why is this necessary?
- ultrafez 12y agoIf you change your algorithm, your old tokens are still usable because you know which algorithm was used to create them.
- marcioaguiar 12y agoIt would not be possible to establish a period to migrate all tokens? This "if you change in a possible feature" is not a good argument when modeling something, in my opinion. That's how AbstractFactoryStrategies are made.
- bronson 12y agoThat sounds like a very niche case, probably not worth solving. That said, the JWT lib could allow you to specify one or more fallback algorithms in case the default one fails to validate. If you're switching off an algorithm, you're probably doing it because it's been broken. And, if it's broken, you won't use it anyway.
- jessaustin 12y agoAs the issues described in TFA make clear, the verifier really should know the algorithm in order to verify completely. However, since this format allows various algorithms, the algorithm must be recorded somewhere, especially in the public-key scenario when the verifier is probably not the signer.
- Kiro 12y agoThanks. OT but what does TFA stand for? I've seen you use it in two threads and I presume it's referring to the posted article in question but I can't figure out the actual meaning.
- williamcotton 12y agoThe F*ing Article... probably evolved from RTFM. Hacker culture, so warm and welcoming, isn't it?
- jessaustin 12y agoI've usually seen it as The Fine Article, but tastes vary. b^)
- sp332 12y agoThe abbreviation gives some plausible deniability - it could be "the fine article"!
- zaroth 12y agoThat usage was deprecated by RFC19647. The correct definition is now 'The Featured Article'.