I build a chatbot using Power Virtual Agents (preview version).
I set up SSO with AzureAD and deploy the chatbot to Microsoft Teams.
It works for first 1-2 hours, but after that (maybe after the initial token is expired) I cannot access 'System.User.AccessToken' information and I get 'InfiniteLoopInBotContent' error. It seems the bot try to re-authenticate but it doesn't work.
And, 'System.User.AccessToken' is not in the variable list. (So, I open 'code editor' and type it manually).
Help.
Hi Henry,
My chatbot call a REST API to server in Azure. In this API, I'd like to use AccessToken.
Thanks @T_TERADA, out of curiosity, what are the security concerns with using the native Only in Teams setting?
Thanks @T_TERADA, out of curiosity, what are the security concerns with using the native Only in Teams setting?
Hi Henry,
Thank you for your information.
I'd like to use AuthToken instead of UserID due to security reason.
But, I'll 'Only in Teams authentication setting' instead until SSO is supported.
Hi @T_TERADA
I don’t believe SSO is supported for the Microsoft Teams channel on the preview version, yet. The documentation calls out it’s only supported for custom websites:
https://learn.microsoft.com/en-us/power-virtual-agents/preview/configure-web-sso
In Power Virtual Agents preview, SSO is supported for the custom website channel only. It's not supported for the following channels:
Can you use the Only in Teams authentication setting instead?