BOT框架 - 隐藏文本活动



可以从私有异步任务中隐藏文本活动(例如Textfields上的密码属性(?

示例:

我将ID放在bot仿真器上:admin

->我的应用程序正在请求我的密码

当我写时,想要这样的显示:********

我感谢帮助。

谢谢。

目前不是bot框架的功能。

考虑使用机器人身份验证工作流程。

机器人身份验证资源

https://blogs.msdn.microsoft.com/richard_dizeregas_blog/2017/05/05/bot-authentication-in-bot-authentication-in-the-bot-framework/

身份验证 - .NET示例

您可能想从观看此视频开始:https://channel9.msdn.com/shows/office-dev-show/office-dev-show-show-episode-34-getting-started-with-bots-----microsoft-graph

接下来,您可以研究此代码示例,该示例演示了与Active Directory的BOT框架集成。https://github.com/microsoftdx/authbot

您也可以考虑查看登录卡示例,该示例也可以通过Web登录来验证您的机器人。

文档:-https://lealen.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-adnet-add-card-card-card-card-card-card-card-card-card-a-add-a-a-a-a-a-a-a-sign-sign-sign-card-card-to-a-message

代码示例:-https://github.com/microsoft/botbuilder-samples/tree/master/csharp/cards-richcards

登录卡:

Activity replyToConversation = message.CreateReply("Should go to conversation");
replyToConversation.Attachments = new List<Attachment>();
List<CardAction> cardButtons = new List<CardAction>();
CardAction plButton = new CardAction()
{
    Value = $"https://<OAuthSignInURL",
    Type = "signin",
    Title = "Connect"
};
cardButtons.Add(plButton);
SigninCard plCard = new SigninCard(title: "You need to authorize me", button: plButton);
Attachment plAttachment = plCard.ToAttachment();
replyToConversation.Attachments.Add(plAttachment);
var reply = await connector.Conversations.SendToConversationAsync(replyToConversation);

最新更新