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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Help required with SSO with AI Agent via LCW widget

(1) ShareShare
ReportReport
Posted on by 2
I am trying to achieve SSO with AI Agent that is triggered via LCW
 
This uses Generic OAuth 2 implemented via ADB2C User Flow.
 
Once I login to my site and open the LCW script, I can see the chat button. On the lcw:ready listener I am setting setbotauthtokenprovider (which takes function(botAuthTokenUrl, callback)) as defined herehttps://learn.microsoft.com/en-us/dynamics365/customer-service/develop/reference/methods/setbotauthtokenprovider
 
I am trying to pass the token to the botAuthTokenUrl as mentioned in the sample here https://learn.microsoft.com/en-us/dynamics365/customer-service/develop/pass-auth-token-sso-live-chat
 
After clicking it, the LCW chat button function(botAuthTokenUrl, callback) is called but botAuthTokenUrl is empty.
 
I must mention that the Auth setting done for the AI Agent does work, i.e when I click on the sign in card in the chat it triggers the AI Agent Auth flow and is able to retrieve the token as after login I can see the user data being shown inside the chat
What else do I need to do to get the botAuthTokenUrl? Do we need to set up authentication for the chat widget, I would have guessed not - as not sure how that would tie in with AI Agent token requirement
I have the same question (0)
  • Tom_Gioielli Profile Picture
    3,078 Super User 2026 Season 1 on at
    You may have better luck posting over on Find Answers | Microsoft Power Platform Community, which has forums for Copilot Studio. These forums are focused much more on the Dynamics family of products, and while AI is part of what we do you likely won't find any many experts on it here as you would in other community forums.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 23 Super User 2026 Season 1

#3
Encore Business Solutions Profile Picture

Encore Business Sol... 14

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans