Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question
    
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 Jul 22 '13 at 5:59

1 Answer 1

up vote 1 down vote accepted

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/

share|improve this answer
    
let me check it. Thank you for our kind. I was on this code for the last 2 weeks. –  felix Jul 26 '13 at 7:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.