Skip to content

Instantly share code, notes, and snippets.

View HaQadosch's full-sized avatar
📓
Storybook

HaQadosch HaQadosch

📓
Storybook
View GitHub Profile

The issue you're experiencing might be caused by the fact that the custom CCP is not receiving the tokens needed to authenticate the agent. It appears that the SAML response is redirected to the default Amazon Connect CCP, and the custom CCP does not receive the required information.

To resolve this issue, you can try the following approach:

  1. Modify your loginUrl to include the custom CCP URL in the RelayState parameter. You should encode the custom CCP URL before appending it to the RelayState parameter. Replace http://127.0.0.0:5500/ccp-v2.html with the actual custom CCP URL when you host it publicly.
  var customCcpUrl = encodeURIComponent("http://127.0.0.0:5500/ccp-v2.html");
  var loginUrl = "https://<domain>.uk.auth0.com/samlp/<app>?RelayState=https://<region>.console.aws.amazon.com/connect/federate/<instanceId>?destination=%2Fconnect%2Fccp-v2&customCcpUrl=" + customCcpUrl;
@HaQadosch
HaQadosch / README.txt
Created September 17, 2021 15:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@HaQadosch
HaQadosch / README.txt
Created September 17, 2021 14:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@HaQadosch
HaQadosch / README.txt
Created September 15, 2021 20:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@HaQadosch
HaQadosch / contracts...SimpleStorage.sol
Created September 15, 2021 20:32
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
contract SimpleStorage {
uint256 favoriteNumber = 0;
struct People {
string name;
uint256 favoriteNumber;
}
@HaQadosch
HaQadosch / weather.json
Created March 4, 2020 17:26
data for Fullstack d3
[{"time": 1514782800, "summary": "Clear throughout the day.", "icon": "clear-day", "sunriseTime": 1514809280, "sunsetTime": 1514842810, "moonPhase": 0.48, "precipIntensity": 0, "precipIntensityMax": 0, "precipProbability": 0, "temperatureHigh": 18.39, "temperatureHighTime": 1514836800, "temperatureLow": 12.23, "temperatureLowTime": 1514894400, "apparentTemperatureHigh": 17.29, "apparentTemperatureHighTime": 1514844000, "apparentTemperatureLow": 4.51, "apparentTemperatureLowTime": 1514887200, "dewPoint": -1.67, "humidity": 0.54, "pressure": 1028.26, "windSpeed": 4.16, "windGust": 13.98, "windGustTime": 1514829600, "windBearing": 309, "cloudCover": 0.02, "uvIndex": 2, "uvIndexTime": 1514822400, "visibility": 10, "temperatureMin": 6.17, "temperatureMinTime": 1514808000, "temperatureMax": 18.39, "temperatureMaxTime": 1514836800, "apparentTemperatureMin": -2.19, "apparentTemperatureMinTime": 1514808000, "apparentTemperatureMax": 17.29, "apparentTemperatureMaxTime": 1514844000, "date": "2018-01-01"}, {"time": 15148
@HaQadosch
HaQadosch / SketchSystems.spec
Created December 19, 2019 22:03
Star Wars Game
Star Wars Game
IDLE
fetch -> PENDING
PENDING
resolve -> SUCCESSFUL
reject -> FAILED
FAILED
fetch -> PENDING
SUCCESSFUL
fetch -> PENDING