how can I ask user to login to my web from bot, and later when user ask bot something to check first if user is authenticated in my web, if not to redirect to web to login. I've made the login using sign-in card in bot and I pass the activity.user.id, but I don't know how to retrieve the information if the user is logged in or not either.
ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl));
Activity reply = activity.CreateReply($"Well hello there. What can I do for you today?");
await connector.Conversations.ReplyToActivityAsync(reply);
var id = activity.From.Id;
reply.Attachments = new List<Attachment>();
List<CardAction> cardButtons = new List<CardAction>();
CardAction plButton = new CardAction()
{
Value = $"http://myapp.azurewebsites.net/Account/Login?userid='{id}'",
Type = "signin",
Title = "Connect"
};
cardButtons.Add(plButton);
SigninCard plCard = new SigninCard("You need to authorize me", new List<CardAction>()
{ plButton });
Attachment plAttachment = plCard.ToAttachment();
reply.Attachments.Add(plAttachment);
var replyt = await connector.Conversations.SendToConversationAsync(reply);
