TeamsBotApplicationOptions.AddOAuthFlow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.