LaunchBrowser Event
Fires before launching a browser with the authorization URL.
Syntax
oauth.on('LaunchBrowser', [callback])
Callback
The 'callback' is called when the 'LaunchBrowser' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.URL e.command
Remarks
When the ClientProfile property is set to cfApplication and GetAuthorization is called the class will fire this event with the Command which will be executed by the class. The URL parameter will be the authorization URL which the user will be directed to authenticate.
Within this event you may override the current value of either Command or URL and provide your own value. If Command is set to empty string the class will not attempt to launch the browser and instead you will be responsible for directing the user to the authorization URL specified by AuthorizationURL.