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

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

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

· 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.

@SatyamTiwari-8896, Currently Microsoft Q&A doesn't support the Bot Framework, I recommend that you could ask your question in Stackoverflow

0 Votes 0 ·

0 Answers