-
Notifications
You must be signed in to change notification settings - Fork 597
Rework CookieAuth for compat with CookiePolicy. #843
Conversation
Hi @Tratcher, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
|
1 similar comment
|
I wonder why the cookie manager is not part of a more general repository like HttpAbstractions. It's not really specific to authentication cookies, actually. |
That's what we thought in Katana, but then nobody else ever used it. |
Hmm, this format change will break interop with Katana. However the ICookieManager could be replaced there to read the modified format. @HaoK is this a problem for the interop work you did? |
Did you change the TicketSerializer? |
No, I changed the format of the first cookie from |
Well I guess if katana is broken by definition the cookie interop will be as well regardless.
|
Should I add a compatible cookie manager to the interop package? |
If you want to bring back a dependency on the OWIN cookies package, that would be great to do that in a separate package (something like |
Is cookie chunking on by default? On Wed, May 25, 2016 at 11:03 AM, Chris R [email protected] wrote:
|
Yes, chunking is on by default, but it only takes effect if the cookie is over 4kb. This happens pretty often for OIDC. |
A cookie interop package is good since it would be a better home for the extensions methods needed for cookie data protection sharing than the Identity compat package. |
Updated. I was able to add a compatible ChunkingCookieManager to the interop package without adding any dependencies because the old interface was in the Microsoft.Owin package. |
Nice 👍 |
Nice |
4287e4a
to
2634fe3
Compare
#814 @anurse @HaoK @muratg
Change ChunkingCookieManager from appending raw headers to appending via the response cookies API. Here are a few side effects:
key=chunks:2
tokey=chunks-2
.:
would be escaped by the response cookies API.