Jump to content
We've recently updated our Privacy Statement, available here ×

shinysreekumar

Members
  • Posts

    5
  • Joined

  • Last visited

shinysreekumar's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. HI, How do we achieve trusted authenticaiton b/w Jaspersoft Report Server and the other application. Thanks!
  2. Hi, I am using JRS 6.1. I am trying to use token based authentication. public string Login_Server() { uri = new Uri(API_URI);// + "/me.xml"); string credentials = "j_username="+USERNAME+"&j_password="+PASSWORD; try { if (string.IsNullOrEmpty(credentials)) throw new Exception("Error: HttpMethod POST needs data to send"); string address = "http://Jasperdev1:8080/jasperserver-pro/?pp=u=superuser|r=ROLE_ADMINISTRATOR|o=Public|pa1=USA|pa2=Washington"; request = WebRequest.Create(address) as HttpWebRequest; //+ "?p=y=" + USERNAME + "r=12345" + "|o=" + OrganID + "|pa1=" + PA1 + "|PAo2=" + PA2) as HttpWebRequest; request.Method = "GET"; response = (HttpWebResponse)request.GetResponse(); StreamReader sr = new StreamReader(response.GetResponseStream()); if (response.StatusCode == HttpStatusCode.OK) { Console.WriteLine("rnResponse Status Code is OK and StatusDescription is: {0}", response.StatusDescription); sessionCookie = response.GetResponseHeader("Set-Cookie"); Console.WriteLine("rnSession Cookie is: {0}", sessionCookie); } else { Console.WriteLine("rnPlease check the Jaspersoft Server connectivity: {0}", response.StatusDescription); } } Everytime I run , I get the Status as OK but the HEaders.Location is null. I have placed the configuration file for pre-auth at the mentioned location in http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v610/using-pre-authentication-token-0 My requirement is to authenticate thru code and launch the web browser with the sessionId which I recieve on authenticaiton. Pls suggest me if anything is wrong in the given code.
  3. Hi, How do we establish trusted authentication between Jaspersoft Report server and other application?
  4. Thanks!. Do we have the same in Java with the steps to be followed. I am a newbie to JRS.
  5. Hi, I have a configured JRS with few reports. I am looking for token based authentication sample in C# . Do we have any API's for the same. Could you please help me on this.
×
×
  • Create New...