Language

TeamsBotApplication.GetOAuthFlow(String) Method

Definition

Gets a registered OAuthFlow by connection name. Use this to attach callbacks (OnSignInComplete(SignInCompleteHandler), OnSignInFailure(SignInFailureHandler)) to flows that were configured via AddOAuthFlow(String, Action<OAuthOptions>).

public Microsoft.Teams.Apps.OAuth.OAuthFlow GetOAuthFlow(string connectionName);
member this.GetOAuthFlow : string -> Microsoft.Teams.Apps.OAuth.OAuthFlow
Public Function GetOAuthFlow (connectionName As String) As OAuthFlow

Parameters

connectionName
String

The OAuth connection name.

Returns

The OAuthFlow instance.

Exceptions

No flow is registered for the given connection name.

Applies to