TeamsBotApplication.GetOAuthFlow(String) 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.
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.