question

SatyamTiwari-8896 avatar image
0 Votes"
SatyamTiwari-8896 asked GiftA-MSFT commented

How to interrupt once OAuth2 dialog initiate in Bot Framework C#

0


I have two questions:

In Waterfall step, once I start the OAuth prompt with this code:

return await stepContext.BeginDialogAsync(nameof(OAuthPrompt), cancellationToken);
Then OAuth card appears after that if I type something in chat rather than button click nothing happens.

I want to return this text "Please login first" to the user, and I want to re-prompt with the OAuth card.

I want to display two buttons in OAuth card and on second button click want to start a new dialog

dotnet-csharpazure-bot-service
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, thanks for reaching out. I found this document that illustrates how to handle user interruptions. Let us know if it helps. Thanks.


0 Votes 0 ·

0 Answers