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

Satyam Tiwari 1 Reputation point
2021-09-13T06:40:10.37+00:00

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

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
767 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,481 questions
{count} votes