Pass value from one ASP.NET application to another through an HTTP header

We are introducing a single sign mechanism in a corporate environment where the token is divided between applications using an HTTP header. Now, to complete the integration test, I need to write an application to simulate this.

Is there any way in ASP.NET where I can redirect to another web page and pass the custom HTTP header in this process?

thank

+3
source share
2 answers

You need to create a site B page so that Site A redirects the user who sets the cookie with the desired value.

eg.

http://siteb.com/authenticate.aspx?authtoken=15128901428901428904jasklads&returnUrl=http://siteb.com/index.aspx

authenticate.aspx cookie, authtoken.

+2

HTTP- , .

Cookie QueryString. , .

, , , ( - ).

0

Source: https://habr.com/ru/post/1750121/


All Articles