cookie-rs icon indicating copy to clipboard operation
cookie-rs copied to clipboard

Avoid polluting signed cookies

Open Fishrock123 opened this issue 4 years ago • 1 comments

It would be nice if instead of polluting signed cookies, there was an easy way to have the raw cookie sit alongside a signature cookie. This would greatly help any intermediaries, i.e. a proxy or other routing be able to use cookies in some way, where it may not need to re-verify those.

This is inspired by Express.js's cookies middleware which keeps the raw cookie and then also makes an additional cookie with the signature and name + ".sig".

Fishrock123 avatar Jul 15 '20 21:07 Fishrock123

I think an additional child jar, or perhaps a setting on the existing Signed jar, that enables this functionality would be great.

SergioBenitez avatar Oct 14 '20 02:10 SergioBenitez

This has been sitting here for years. I'm not opposed to the idea, and I would review such an implementation. But given no other requests, I'm closing this out.

SergioBenitez avatar Sep 21 '23 21:09 SergioBenitez