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

Satyam Tiwari 1 Reputation point


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