Amazon connect CCP redirect to amazone connect login

0

I am using Amazon connect streams in my angular project. I call in the InitCCP method and gave all the necessary detail there when I try to login it redirect me to https://XXXX.my.connect.aws/login from https://XXXX.my.connect.aws/ccp-v2 I don't know the reason If someone has any clue please guide me because of the above redirection, it opens the home dashboard of amazon connect instead of opening CCP window. here is my full configuration:

connect.core.initCCP(
      this.connectDiv.nativeElement as HTMLElement,
      // this.connectService.getInitConnectOption(),
     {
        ccpUrl: "https://xxxxx.my.connect.aws/ccp-v2#",            // REQUIRED
                 // REQUIRED
        loginPopup: false,               // optional, defaults to `true`
        loginPopupAutoClose: true,      // optional, defaults to `false`
        region: "eu-central-1",         // REQUIRED for `CHAT`, optional otherwise
        softphone: {                    // optional, defaults below apply if not provided
          allowFramedSoftphone: true,   // optional, defaults to false
          disableRingtone: false,       // optional, defaults to false
          ringtoneUrl: "./ringtone.mp3" // optional, defaults to CCP’s default ringtone if a falsy value is set
        },
        // shouldAddNamespaceToLogs: false, //optional, defaults to 'false'
        // ccpAckTimeout: 5000, //optional, defaults to 3000 (ms)
        ccpSynTimeout: 500, //optional, defaults to 1000 (ms)
        ccpLoadTimeout: 100000 //optional, defaults to 5000 (ms)
      }
    );
S_Ali
asked a year ago580 views
2 Answers
1

Try to set loginPopup to true, it will pop to login if you are not already login. And after login, it will close (loginpopupautoclose is true)

profile pictureAWS
answered a year ago
  • Could you please provide me a support on following issue

    repost.aws/questions/QUdWQa8bxKRoKSR1tJxHzC0Q/amazon-connect-login-popup-auto-close-issue-while-using-identity-center-as-idp

0

Can you confirm that in your instance details you have your angular app URL in the approved origins? I've seen that be a source of trip up to many.

david

profile picture
dmacias
answered a year ago
  • Yes i have Added my Angular app url in the approved origns.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions