如何将响应标头传递给重定向URL [英] How do I pass response header to a redirect URL

查看:75
本文介绍了如何将响应标头传递给重定向URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How do i pass Response Header to a redirect URL



我有一个Identity Manager解决方案,其中用户尝试访问资源(URL:服务提供商(sp)中的ex(www.abc.com \ Product),当用户通过IDP向SP发送断言时,SP会将用户重定向到IDP(身份提供商)。在收到断言后,我的客户端要求将断言中的一些属性添加到所请求资源的响应头中(URL:ex www.abc.com \ Product)。问题是,由于它是一个ASP.net解决方案,我不能将响应头添加到URL,即在将标题添加到请求的URL之后,重定向到同一个后不可用。



请帮助我。



我尝试了什么:



厌倦了在post方法的Hidden vlaue中添加名称值但是现在不可行


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

推荐答案

放入会话变量中的响应头,并使用另一页中的会话变量
Put the response header in a session variable, and use the session variable in the other page


这篇关于如何将响应标头传递给重定向URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆