Click here to Skip to main content
15,898,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i pass Response Header to a redirect URL

I have a Identity manager Solution where user tries to access a resource(URL:ex www.abc.com\Product) in Service provider(sp) and the SP will redirect the user to IDP(identity provider) whe user is authenticated the IDP sends assertion to SP. Upon receving the assertion my Client requires some of the attributes from the assertion to be added to the response header of the requested Resource(URL:ex www.abc.com\Product). The Problem is that since it is an ASP.net solution i cannot add the response header to the url, i.e after adding the header to the requested url the same is not available after redirecting to the same).

Kindly assist me on the same.

What I have tried:

Tired adding the name value in the Hidden vlaue of the post method but it was not feasible as of now
Posted
Updated 2-Apr-19 0:57am

1 solution

Put the response header in a session variable, and use the session variable in the other page
 
Share this answer
 
Comments
Member 13746844 2-Apr-19 7:34am    
@#realJSOP:-Thank you for the response.
This may sound stupid to ask once again, is there any way to achive this through headers or POST form data??
#realJSOP 2-Apr-19 8:05am    
I suppose you could base64 encode and pass it as a querystring value, and then decode it in the receiving page.
Member 13746844 2-Apr-19 8:55am    
@#realJSOP: thank you so much for the reply,
will try this approach as we have only two sets of values to be passed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900