Login Window Issue with Amazon Connect Streams

1

Hi,

I am new to Amazon Connect and I have build my own Amazon Connect Streams using the instructions and code present on the GitHub. Following are the links:-

GitHub Code: https://github.com/amazon-connect/amazon-connect-streams

GitHub Documentation: https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md

Right now, I am facing the Login Window Issue.

While using Chrome, whenever I try to access the Amazon Connect Stream URL of my application, it gives an error, and at the same time, it opens a popup Login Window for Amazon Connect.

While using Firefox, whenever I try to access the Amazon Connect Stream URL of my application, it displays an error message and a button saying "Open Site in New Window". When I click on the button, the Amazon Connect Login page is opened in new tab.

Basically, in both cases, the user has to login to Amazon Connect Dashboard, so that he/she can access the Streams URL.

Is there any way, where the user would require to login to Amazon Connect Dashboard to access the Streams URL?

Please help!

asked 2 years ago1175 views
1 Answer
0

Make sure in your initCCP options, you enabled loginPopup: true and loginPopupAutoClose: true

Assuming you have both of those, add

window.localStorage.removeItem('connectPopupManager::connect::loginPopup');

after your instanceURL declaration and before your function initialization, and make sure popups are enabled in your browser. The expected behavior is that initially you'll see the "refused to display" error, but it will then pop-up to your login provider, and after login, the pop-up window will close, and CCP will display.

AWS
gthomas
answered 2 years ago
  • Thank You so much for replying.

    The kind of behavior I am expecting that there should be no Login Popup Window at all.

    When the user enters the URL in the browser, the login page must be displayed first.

    After that, when the user enters the credentials, then the CCP window must be displayed.

    In order to access the Amazon Connect CCP (Contact Control panel), the user must not be required to login to the Amazon Connect Dashboard.

  • You could accomplish something like this utilizing SSO, but the above steps would still be required in order to allow assertions to be passed to CCP to authorize the user. The x-frame-options SAMEORIGIN header blocks the authorization process from occurring within an iframe. In the event that the user is already logged in, the login window will pop up and use the existing session, then close the pop-up and proceed with loading the streams-based CCP

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