cancel
Showing results for 
Search instead for 
Did you mean: 

Authorisation issue in webclient version of SAP CAi

0 Kudos

A web client version of my SAP CAi chatbot has been deployed on Web IDE successfully. However, unless I am logged into my enterprise version of my SAP CAi account I can not chat with my chat bot hosted on web ide. If I open a 2nd window and login to my enterprise account and then refresh my Fiori launchpad page i can chat with my bot without any hindrance . Can anyone tell me what may be the possible cause of such an error / authorisation issue ? Is there any possible solution for this problem ?

0 Kudos

Hi Victor,

Could you please provide more details ?

How did you deploy the webclient on the Web IDE?

Are you using the script generated by the Chat bot builder? is it your own webclient ?

In case this is using the script, it would help to get the har trace when the application loads.

Best regards,

Thierry

Accepted Solutions (0)

Answers (3)

Answers (3)

iyermobile
Participant
0 Kudos

Refer my answer and snapshot at https://answers.sap.com/comments/13410094/view.html

Appreciate a LIKE if you found the answer helpful or if it could resolve you issue.

Drop me a direct message for any remote help.

0 Kudos

Hi Victor,

This does not matter whether they are from the same domain or not. The webclient executes in a iframe for this matter.

Most likely if the sso fails while started from the webide but the webclient loads once a session has been created in another tab means that the issue in the trust of the xsuaa service.

Please follow the instruction from the link below
https://help.sap.com/viewer/eafc53387d0d46a887611a1f48ca6d23/latest/en-US/e409c11690474c9ea5b9e35f29...

Section XSUAA Service

Best regards,

Thierry

0 Kudos

Hi Thierry,

The webclient has been deployed under the same Region but of a different sub account as compared to the SAP Cai tenant ( Eg - The SAP tenant is from X region under A sub account and the web client version is from X region under B sub account ).

So when I try to open the web client based web page I am am not able to directly chat with the bot as SSO is not successful .However if I open a new window and login to my SAP Cai tenant and then come back to the same webclient based web page I am able to chat with the bot.

My question is " Is it compulsory for the web ide and SAP Cai to be under same region and same sub account for the authentication mechanism work seamlessly , without logging in tenant account of SAP Cai every time before launching the Web page where the chatbot is hosted ? "