Language

TeamsBotApplicationOptions.AddOAuthFlow Method

Definition

Register an OAuth flow with the given connection name and optional configuration.

public Microsoft.Teams.Apps.TeamsBotApplicationOptions AddOAuthFlow(string connectionName, Action<Microsoft.Teams.Apps.OAuth.OAuthOptions>? configure = default);
member this.AddOAuthFlow : string * Action<Microsoft.Teams.Apps.OAuth.OAuthOptions> -> Microsoft.Teams.Apps.TeamsBotApplicationOptions
Public Function AddOAuthFlow (connectionName As String, Optional configure As Action(Of OAuthOptions) = Nothing) As TeamsBotApplicationOptions

Parameters

connectionName
String

The OAuth connection name configured on the bot.

configure
Action<OAuthOptions>

Optional delegate to configure the OAuthOptions (card text, button text).

Returns

This instance for chaining.

Applies to