ReturnURL Event
Fires when the user is redirected to the embedded web server.
Syntax
oauth.on('ReturnURL', [callback])
Callback
The 'callback' is called when the 'ReturnURL' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.URLPath e.queryString e.responseHeaders e.responseBody
Remarks
When ClientProfile is set to cfApplication and the embedded web server is used (default), this event will fire when the user is redirected from authorization server back to the local embedded web server. The event provides an opportunity to set the ResponseHeaders and ResponseBody and provide a custom response that the user will see in their browser.
URLPath and QueryString are informational parameters that show the values sent by the authorization server.