简体   繁体   中英

How to get Authentication details of user over Skype for Business channel in Microsoft Bot Framework

I have created a Bot in Node JS using Microsft Bot Framework and is deployed on Skype for Business (SFB) channel .

Whenever a user interacts with Bot over SFB and asks to fetch some details, I want the Bot to get these details from my companies internal system using the user's authentication token which should have generated when user login to SFB.

So, is there any way to get user's token from SFB which the Bot can use to get the required information on user's behalf? I can't use the Bot credential to get the information requested by the user on his/her behalf. My companies internal system, SFB uses the same Azure AD for user authentication.

I refer the questions Authenticate user across channels in Microsoft bot Framework , Skype for Business channel doesn't pass authentication credentials correctly but that doesn't help me to answer my question.

I referred Authenticate user in Microsoft bot framework link and If I ask the user to authenticate by using something https://blogs.msdn.microsoft.com/tsmatsuz/2016/09/06/microsoft-bot-framework-bot-with-authentication-and-signin-login/ then every time user ask some question, I need to ask the user to authenticate and that won't be a good for user experience as the user has already been authenticated over SFB.

Can someone please help me with some documentation that I can refer to resolve this issue?

I don't know about getting the token via the Skype channel directly, but I believe you could write UCMA code that would capture communication with a Skype user configured to be your bot, then transmit the conversation to the bot using Directline, with full knowledge of the user transmitted to the bot. You would then capture the result and reply to the user using the UCMA code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM