question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auth support for SameSite Changes coming to Browsers and Loading CCP widget on a 3rd Party Domain

See original GitHub issue

As of Chrome v80 – to be released Feb 4 - (and soon to be Firefox and the latest IE) the browsers will be enforcing SameSite cookies by default. Meaning that if SameSite policy is not set on cookies they will by default not be available across third party domains. This is problematic for any developers trying to embed AWS connect widget’s on one of their 3rd party domains.

Better explanation: https://web.dev/samesite-cookies-explained/#explicitly-state-cookie-usage-with-the-samesite-attribute

The SAML auth flow with AWS connect currently obtains the following auth cookies after SAML auth flow with a API call to

POST https://${ConnectInstance}.awsapps.com/connect/auth/sign-in

This API call set the 2 following cookies on Response used for authentication on subsequent AWS Connect Calls

lily-auth-prod-iad && lily-auth-refresh-prod-iad

Screen Shot 2020-01-13 at 10 23 59 AM

As you can see these cookies are being set with SameSite as empty. This causes Chrome in new version to default cookies SameSite policy to SameSite=Lax which then will cause these auth cookies to not be sent to the subsequent AWS call to authorize with how the CCP widget is loaded into an IFRAME on a 3rd party domain.

GET https://${ConnnectInstance}.awsapps.com/connect/auth/authorize

By downloading chrome canary version you can validate this breaks as well as get the following warning saying cookies are being filtered so they will not be sent along with the call to /connect/auth/authorize and thus we get a 401 consistently.

Screen Shot 2020-01-13 at 10 36 45 AM 1

To Test:

  1. Download Chrome Canary ( https://www.google.com/chrome/canary/ )
  2. In your current Chrome type in chrome://flags, and enable SameSite cookies
Screen Shot 2020-01-13 at 10 56 56 AM

Is there any recommendation for developers to work around this or for how to proceed if they are embedding the CCP widget on a custom domain name. This would be a change Amazon would need to make with how they are defaulting cookies on the call to /connect/auth/sign-in and set connect auth cookies to SameSite=None if they intend to allow end users to embed the aws connect CCP widget on their domains.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
scolandcommented, Jan 14, 2020

Thanks for the detailed post!

We are aware of this issue and are working on a solution, stay tuned for an update.

2reactions
hfahlbuschcommented, Jan 16, 2020

@scoland Will this fix be compatible with “older” amazon-connect-streams versions and done in CCP code or do we need to upgrade our client installations?

Thanks for any information that helps us to prevent outages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How will amazon-connect-streams work without third-party ...
With web browsers phasing out third-party cookies (e.g. Chrome ... Auth support for SameSite Changes coming to Browsers and Loading CCP ...
Read more >
How to handle SameSite cookie changes in Chrome browser
Learn how to handle SameSite cookie changes in Chrome browser.
Read more >
Prepare for SameSite Cookie Updates - Heroku Blog
In this post, we will cover changes coming to Chrome (and other browsers) that affect how third-party cookies are handled—specifically ...
Read more >
Get Ready for New SameSite=None; Secure Cookie Settings
Only cookies with the SameSite=None ; Secure setting will be available for external access, provided they are being accessed from secure connections.
Read more >
Browsers supported by Amazon Connect - AWS Documentation
Learn which browsers you can use with Amazon Connect. ... Connect console, Contact Control Panel (CCP), and agent workspace do not support mobile...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found