Skip to content

Commit 3f08508

Browse files
authored
Merge pull request #760 from bretticus-mc/master
updated request-storage-access url validation to include govcloud domains
2 parents 00625f6 + dd08353 commit 3f08508

File tree

9 files changed

+17
-9
lines changed

9 files changed

+17
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Run `npm run release` to generate new release files. Full instructions for build
1818
In version 1.x, we also support `make` for legacy builds. This option was removed in version 2.x.
1919

2020
# Important Announcements
21-
1. September 2023 - Amazon Connect CCP uses cookies for authentication. As part of Google's [Privacy Sandbox](https://privacysandbox.com/open-web/#the-privacy-sandbox-timeline) initiative, Google Chrome has announced plans to block third-party cookies (that is, cookies passed between two top level domains). Version 2.6.4 comes with request storage access API implementation which allows CCP to continue using third party cookies. [Learn more](https://docs.aws.amazon.com/connect/latest/adminguide/admin-3pcookies.html#implement-streams-upgrade).
21+
1. September 2023 - Amazon Connect CCP uses cookies for authentication. As part of Google's [Privacy Sandbox](https://privacysandbox.com/open-web/#the-privacy-sandbox-timeline) initiative, Google Chrome has announced plans to block third-party cookies (that is, cookies passed between two top level domains). Version 2.7.1 comes with request storage access API implementation which allows CCP to continue using third party cookies. [Learn more](https://docs.aws.amazon.com/connect/latest/adminguide/admin-3pcookies.html#implement-streams-upgrade).
2222
1. December 2022 - In addition to the CCP, customers can now embed an application that provides guided experiences to your agents using the connect.agentApp. See the [updated documentation](https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#initialization-for-ccp-customer-profiles-wisdom-and-customviews) for details on usage.
2323
* ### Guided experiences for agents
2424
+ With Amazon Connect you can now create guided step-by-step experiences that walk agents through tailored views that focus on what must be seen or done by the agent at a given moment during an interaction. You can design workflows for various types of customer interactions and present agents with different step-by-step guides based on context, such as call queue, customer information, and interactive voice response (IVR). This feature is available in the Connect agent workspace as well as an embeddable application that can be embedded into another website via the Streams API. For more information, visit the AWS website: https://aws.amazon.com/connect/agent-workspace/

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amazon-connect-streams",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"description": "Amazon Connect Streams Library",
55
"engines": {
66
"node": ">=12.0.0"

release/connect-streams-dr-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/connect-streams-dr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/connect-streams-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/connect-streams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30533,7 +30533,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;// AWS SDK for JavaScript v2.1377.0
3053330533
* */
3053430534
const isCustomRequestAccessMode = () => storageParams && storageParams.mode !== 'default';
3053530535

30536-
const isConnectDomain = (origin) => origin.match(/.connect.aws.a2z.com|.my.connect.aws|.awsapps.com/);
30536+
const isConnectDomain = (origin) => origin.match(/.connect.aws.a2z.com|.my.connect.aws|.govcloud.connect.aws|.awsapps.com/);
3053730537

3053830538
/**
3053930539
* Given the URL, this method generates the prefixed connect domain request storage access URL

src/request-storage-access.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
* */
103103
const isCustomRequestAccessMode = () => storageParams && storageParams.mode !== 'default';
104104

105-
const isConnectDomain = (origin) => origin.match(/.connect.aws.a2z.com|.my.connect.aws|.awsapps.com/);
105+
const isConnectDomain = (origin) => origin.match(/.connect.aws.a2z.com|.my.connect.aws|.govcloud.connect.aws|.awsapps.com/);
106106

107107
/**
108108
* Given the URL, this method generates the prefixed connect domain request storage access URL

test/unit/request-storage-access.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ describe('Request Storage Access module', () => {
131131
);
132132
});
133133

134+
it('should return requestAccessPageurl for govcloud domain', () => {
135+
connect.storageAccess.init('https://test122.govcloud.connect.aws/ccp-v2', container);
136+
137+
expect(connect.storageAccess.getRequestStorageAccessUrl()).to.be.equal(
138+
'https://test122.govcloud.connect.aws/request-storage-access'
139+
);
140+
});
141+
134142
it('should return requestAccessPageurl if instanceUrl being localhost', () => {
135143
connect.storageAccess.init('https://test122.com/connect/ccp-v2', container, {
136144
instanceUrl: 'https://localhost:9000',

0 commit comments

Comments
 (0)