web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Issue regarding SSO authentication in copilot bot via omnichannel

(0) ShareShare
ReportReport
Posted on by 2
I am trying to implement SSO in copilot bot which is added on Power Pages portal using omnichannel chat widget.
 
I have followed this document [Doc 1] to implement authentication in copilot bot and the power pages portal also used MS Entra ID for user login.
 
I have added script to authenticate bot manually using the following doc:
 
The "setBotAuthTokenProvider" script is added on lcw:ready.
 
The event is firing for "setBotAuthTokenProvider" but the code implemented to authenticate is not executing and we have to authenticate manually be clicking on Login card in the chat widget.
 
Upon investigating I found that a network request for the url: 
https://token.botframework.com/api/sas/gettesturl?signInId=1934f756ddc740529a275e35869634b5 is failing.
 
and the response I am getting is: 
{
  "error": {
    "code": "ServiceError",
    "message": "Bot af9c07da-e9dd-d4e2-9cc5-df9f878a4746 does not exist"
  }
}

 
In very rare random cases, SSO works and the bot gets authenticated automatically and the only difference is the above request is successful in this case.

I am not sure why the request fails almost all of the time but works randomly but very rarely.


Any help would be appreciated.
Thanks
 
 
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 60

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 26 Super User 2025 Season 2

#3
CU29080825-0 Profile Picture

CU29080825-0 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans