API Integrator 2016 .NET Edition
API Integrator 2016 .NET Edition
Questions / Feedback?

OAuthLaunchBrowser Event

Fires before launching a browser with the OAuth authorization URL.

Syntax

[VB.NET]
Public Event OnOAuthLaunchBrowser As OnOAuthLaunchBrowserHandler
[C#]
public event OnOAuthLaunchBrowserHandler OnOAuthLaunchBrowser;

public delegate void OnOAuthLaunchBrowserHandler(object sender, ApiclientOAuthLaunchBrowserEventArgs e);

class ApiclientOAuthLaunchBrowserEventArgs : EventArgs {
  string URL {get; set;}
  string Command {get; set;}
}

Remarks

When an OAuth authentication attempt is required, this event will fire before launching a browser with the authorization URL.

Within this event you may override the current values of Command and URL and provide your own.

If Command is set to empty string, the component will not attempt to launch the browser, and instead you will be responsible for directing the user to the authorization URL specified by URL.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
API Integrator 2016 .NET Edition - Version 16.0 [Build 7709]