PrinterOn KB Powered By ePRINTit USA

SSO Configuration Sample - .NET - c06316560

This is a sample from a customer who has implemented SSO from a .NET-based program to PrinterOn.

public partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create("http://172.16.99.6/cps/Login.jsp");

request.Headers.Add("REMOTE_USER", "testUser");

request.Headers.Add("REMOTE_ADDR", "addr");

System.Net.HttpWebResponse response = (System.Net.HttpWebResponse)request.GetResponse();

// System.IO.StreamReader sr = new System.IO.StreamReader(response.GetResponseStream(),

System.Text.Encoding.Default);

// string content = sr.ReadToEnd();

// sr.Close();

Response.Redirect(response.ResponseUri.ToString());

}

}

}

NOTE:

Applies to PrinterOn Enterprise 4.x and later.