IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Idsvr will generate lots of temporary cookies for each call by OpenId

Open atpyk opened this issue 9 years ago • 5 comments

I did a testing for OpenId in Chrome: I have the IdSvr(localhost:5000), and I give two tabs in browser, one is MVCClient(localhost:5002), other is whatever(like google.com), first I type into the Url localhost:5002 in a tab and not enter, and then I switch to the other tab, then I switch these two tabs frequently, the temporary cookies(oidc & Nonce) will be generated for each switch.

Eventually it will form a huge cookie list, so that the client-side will bring a very long head that cannot be transferred.

Even these temporary cookies cannot be removed when login successfully.

NOTE: Chrome provided a mechanism to pre-request before enter Url.

atpyk avatar Dec 28 '16 01:12 atpyk

Bad Request - Request Too Long

HTTP Error 400. The size of the request headers is too long.

atpyk avatar Dec 28 '16 01:12 atpyk

If you don't complete the authentication protocol handshake then these cookies will be orphaned, as you have seen. Why you're not completing the processing is unknown.

brockallen avatar Jan 06 '17 19:01 brockallen

Please reproduce by my steps(Use Chrome). You will find the root cause. So far maybe we cannot fix this issue.

Chrome provided a mechanism to pre-request before the real request occured.

atpyk avatar Jan 09 '17 09:01 atpyk

This sounds like an issue in Chrome and the Microsoft OIDC middleware and has nothing to do with IdentityServer.

brockallen avatar Jan 09 '17 14:01 brockallen

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 15 '20 04:01 lock[bot]