ReturnURL Event
Fires when the user is redirected to the embedded web server.
Syntax
public event OnReturnURLHandler OnReturnURL; public delegate void OnReturnURLHandler(object sender, OauthReturnURLEventArgs e); public class OauthReturnURLEventArgs : EventArgs { public string URLPath { get; } public string QueryString { get; } public string ResponseHeaders { get; set; } public string ResponseBody { get; set; } }
Public Event OnReturnURL As OnReturnURLHandler Public Delegate Sub OnReturnURLHandler(sender As Object, e As OauthReturnURLEventArgs) Public Class OauthReturnURLEventArgs Inherits EventArgs Public ReadOnly Property URLPath As String Public ReadOnly Property QueryString As String Public Property ResponseHeaders As String Public Property ResponseBody As String End Class
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.