I created Bot in Node JS
using Microsft Bot Framework
and is deploying to Skype for Business (SFB) channel
.
Whenever a user interacts with Bot over an SFB and asks for some details, I want Bot to get this data from my companies internal system using the user authentication token that should have been generated when the user logged into the SFB.
So, is there a way to get the user token from the SFB, which Bot can use to get the required information on behalf of the user? I cannot use Bot credentials to retrieve information requested by a user on his behalf. The internal system of my companies, SFB uses the same Azure AD to authenticate users.
I refer to the questions Authenticating users through channels in the Microsoft bot Framework , the Skype for Business channel does not transmit authentication data correctly, but this does not help me answer my question.
I called user authentication in the Microsoft bot framework and if I ask the user to authenticate using something https://blogs.msdn.microsoft.com/tsmatsuz/2016/09/06/microsoft-bot-framework-bot-with- authentication-and-signin-login / , then every time the user asks a question, I need to ask the user to authenticate, and this will not be good for the user, since the user has already passed SFB authentication.
Can someone please help me with some documents that I can find to solve this problem?
source
share