<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Lucida Console;color: #000000">
I wrote about this issue (mainly when it was affecting Safari users), and so I'm not sure if it's the exact same issue you're describing for Chrome. I do describe a workaround to how apps can process responses from cross-domain token servers to handle same-site cookies.<div><br></div><div>https://brockallen.com/2019/01/11/same-site-cookies-asp-net-core-and-external-authentication-providers/<br><div><br></div><div class="mb_sig"><span style="font-size: 10pt">-Brock</span><div><br></div></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">On 7/3/2019 1:56:05 PM, Nick Roy via Openid-specs-ab <firstname.lastname@example.org> wrote:</p><div style="font-family:Arial,Helvetica,sans-serif">Sorry for the cross-post. Is anyone talking to Google about this issue? Any concerns about it affecting OpenID Connect?
<br>> From: Pieter van der Meulen <email@example.com>
<br>> To: firstname.lastname@example.org
<br>> Subject: [refeds] New chrome SameSite policy for session cookies affecting the SAML HTTP-POST binding
<br>> Date: Wed, 26 Jun 2019 12:39:44 +0000
<br>> Hi all,
<br>> Chrome announced plans  to change how cookies work that for several common SP implementations will break SAML authentication using the SAML2int profile. The change in Chrome involves changing the default of the "SameSite" cookie attribute to "Lax" as explained in  and . Because the "SameSite" cookie attribute is a recent addition, most web applications do not set this attribute and thus use the default. Changing the default to "Lax" means that Chrome will not send the cookies that it previously received when the HTTP Request is a cross-site HTTP POST. Such a cross-site HTTP POST is exactly what happens when an IdP uses the SAML HTTP-POST binding so send a SAML Response to a SP. This means that a SP that requires a (session) cookie when receiving the SAML Response on it'a ACS Location using the HTTP-POST binding will break.
<br>> A similar issue exists in OpenID Connect for RPs that use the form_post response mode and that require a (session) cookie. These are typically RPs using Microsoft OpenID Connect libraries. Other OpenID Connect implementations use HTTP GET exclusively, which is allowed cross-domain by "SameSite=Lax".
<br>> We have been discussing this internally at SURFnet and several people from the closed fog list contributed to the discussions. Because this could affect many SPs, and would require changes at those SPs, we concluded that this deserves wider attention, hence this post.
<br>> How to test whether a SP is affected?
<br>> 1. Download the Chrome 76 beta (https://www.google.com/chrome/beta/)
<br>> 2. Open "chrome://flags/" and set the experimental "SameSite by default cookies" flag to "Enabled".
<br>> 3. Login to the SP you want to test.
<br>> 4. (optional) share the results
<br>> The obvious fix is adding a "SameSite=None" attribute to the Set-cookie HTTP header in the HTTP Response. This reenables the old cookie behaviour in Chrome and should not affect other browsers. Unfortunately "SameSite=None" currently breaks Safari browsers , complicating rolling out this fix now.
<br>> You can add the SameSite attribute from the web application itself, or on the web server or load balancer:
<br>> - Apache 2: Header always edit Set-Cookie (.*) "$1; SameSite=None"
<br>> - Nginx: proxy_cookie_path ~(/*) "/$1; SameSite=None";
<br>> - HAProxy: rspirep ^(set-cookie:.*) \1;\ SameSite=None
<br>> Another, more involved, fix is not relying on cookies for the SAML HTTP-POST binding by:
<br>> - setting the session ID in the ID element of the AuthnRequest, or
<br>> - setting the session ID in the RelayState parameter
<br>> An (incomplete) list of SP software that is affected:
<br>> - SimpleSAMLphp
<br>> - Shibboleth, depending on the configuration
<br>> - SATOSA 
<br>> - If you use cookie based load balancing, your LB cookie is affected as well
<br>> - Setting the SameSite attribute is supported since PHP 7.3.0 
<br>> Kind regards,
<br>>  https://blog.chromium.org/2019/05/improving-privacy-and-security-on-web.html
<br>>  https://web.dev/samesite-cookies-explained/
<br>>  https://tools.ietf.org/html/draft-west-cookie-incrementalism-00
<br>>  https://bugs.webkit.org/show_bug.cgi?id=198181
<br>>  https://github.com/IdentityPython/SATOSA/issues/245
<br>>  https://www.php.net/manual/en/session.configuration.php
<br>> Pieter van der Meulen (Pieter.vanderMeulen@surfnet.nl)
<br>> SURFnet (Trust & Security) - www.surfnet.nl
<br>Openid-specs-ab mailing list