ReturnURL Event

Fires when the user is redirected to the embedded web server.

Syntax

class OAuthReturnURLEventParams {
public:
  const QString &URLPath();
  const QString &QueryString();
  const QString &ResponseHeaders();
  void SetResponseHeaders(const QString &qsResponseHeaders);
  const QString &ResponseBody();
  void SetResponseBody(const QString &qsResponseBody);
  int EventRetVal();
  void SetEventRetVal(int iRetVal);
};
// To handle, connect one or more slots to this signal. void ReturnURL(OAuthReturnURLEventParams *e);
// Or, subclass OAuth and override this emitter function. virtual int FireReturnURL(OAuthReturnURLEventParams *e) {...}

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.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Mail 2020 Qt Edition - Version 20.0 [Build 7718]