IronCoreLabs / ironoxide

Rust SDK for IronCore Privacy Platform
https://docs.rs/ironoxide
GNU Affero General Public License v3.0
10 stars 3 forks source link

Make JWT struct more lenient #281

Closed giarc3 closed 2 years ago

giarc3 commented 2 years ago

Our JWT validation in ironoxide is intended to be a simple sanity check before sending to the server (which does actual validation). We were previously not allowing both http://ironcore/sid and sid claims to be present as serde would attempt to put them both in the sid field. The claims and their prefixed versions are now all Options, and we validate that at least one of each is present.