When the Saml2/acs endpoint gets called from the idp the set-cookie header is massive and it keeps resulting in:
Bad Request - Request Too Long HTTP Error 400. The size of the request headers is too long.
Cookies on sample site after ACS endpoint has been called
My question is if anyone has ran into this issue before, and if there is any simple way to solve it. I've tried to make the SAM (SessionAuthenticationModule) to store the cookies in IsReferenceMode to only save references to the cookie itself to reduce the size of the cookies but to no avail. It seems like the set-Cookie header bypasses the SAM configuration.
My iDP at this point hasn't supplied any ServiceProviderCertificate, so i am currently running without with the setting authenticateRequestSigningBehavior set to "Never". Could this play a part?
Worth to mention is that im running localhost aswell as when at the iDP i get this error on BankID on same device.
Been stuck on this for awhile now and would appreciate any input at all.