0

How a webrequest can make between these twi applications...

Diagram sample code:

HttpWebRequest webRqst = (HttpWebRequest)WebRequest.Create(endpoint);
webRqst.UseDefaultCredentials = true;
webRqst.Method = "GET";
webRqst.Accept = "*/*";
webRqst.KeepAlive = true;
 using (WebResponse response = request.GetResponse())
                {
                    using (Stream stream = response.GetResponseStream())
                        {
                            using (StreamReader reader = new StreamReader(stream))
                            {
                                Console.WriteLine(reader.ReadToEnd());
                            }
                         }
                }

While I am making a request it always looking for the login page. My response is always the login form in the STS. Thank you.

felix Antony
  • 1,450
  • 14
  • 28
  • while I make the request, I got the response as login page to the STS server. applicationB always redirect to the STS server for token. No reuse of token here. – felix Antony Jul 22 '13 at 05:59

1 Answers1

1

Is this what you are trying to do? http://www.cloudidentity.com/blog/2013/01/09/using-the-jwt-handler-for-implementing-poor-man-s-delegation-actas/

Rick Rainey
  • 11,096
  • 4
  • 30
  • 48