Open Slamdunk opened 6 days ago
Agree on passing around Key
instances until the very last moment: this also defers any loading even further :+1:
I agree with the proposal.
It's also quite fine to prepare for v6, we don't need to wait too long for it - maybe even slap some more @internal
on those abstract classes.
Honest question: do you think a v6
will ever be released?
I mean, v5
seems pretty complete on the features and API side, issues like this one aren't worth a new release :thinking:
It's fine to bump major release: if packages aren't affected by any of our BC changes, they can widen the dependency ranges.
Things that we still miss have been mentioned recently:
Currently the
Signer\OpenSSL
pulls theKey
content way before its actual usage, and this is a problem because we need to carry around the#[SensitiveParameter]
attribute, potentially forgetting it.I suggest to query the
Key
only when the low-level functions are actually called. It's too early for a PR (https://github.com/lcobucci/jwt/labels/BC-break involved), so I'll leave the diff here for now: