Language

OAuthFlowExtensions.AddOAuthFlow Method

Definition

Overloads

Name Description
AddOAuthFlow(TeamsBotApplication, OAuthOptions)

Register an OAuthFlow with OAuthOptions that configure both the connection name and the default OAuthCard text shown during sign-in. Per-call options passed to SignInAsync<TActivity>(Context<TActivity>, OAuthOptions, CancellationToken) override these defaults.

AddOAuthFlow(TeamsBotApplication, String)

Register an OAuthFlow with an explicit OAuth connection name.

AddOAuthFlow(TeamsBotApplication, OAuthOptions)

Register an OAuthFlow with OAuthOptions that configure both the connection name and the default OAuthCard text shown during sign-in. Per-call options passed to SignInAsync<TActivity>(Context<TActivity>, OAuthOptions, CancellationToken) override these defaults.

public static Microsoft.Teams.Apps.OAuth.OAuthFlow AddOAuthFlow(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.OAuth.OAuthOptions options);
static member AddOAuthFlow : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.OAuth.OAuthOptions -> Microsoft.Teams.Apps.OAuth.OAuthFlow
<Extension()>
Public Function AddOAuthFlow (app As TeamsBotApplication, options As OAuthOptions) As OAuthFlow

Parameters

app
TeamsBotApplication

The Teams bot application.

options
OAuthOptions

OAuth options. ConnectionName is required.

Returns

The OAuthFlow instance for configuring callbacks.

Applies to

AddOAuthFlow(TeamsBotApplication, String)

Register an OAuthFlow with an explicit OAuth connection name.

public static Microsoft.Teams.Apps.OAuth.OAuthFlow AddOAuthFlow(this Microsoft.Teams.Apps.TeamsBotApplication app, string connectionName);
static member AddOAuthFlow : Microsoft.Teams.Apps.TeamsBotApplication * string -> Microsoft.Teams.Apps.OAuth.OAuthFlow
<Extension()>
Public Function AddOAuthFlow (app As TeamsBotApplication, connectionName As String) As OAuthFlow

Parameters

app
TeamsBotApplication

The Teams bot application.

connectionName
String

The OAuth connection name configured on the bot.

Returns

The OAuthFlow instance for configuring callbacks.

Applies to