如何强制ASP.NET窗体身份验证使用绝对URL的参数RETURNURL? [英] How to force ASP.NET forms authentication to use absolute URL for ReturnUrl parameter?

查看:314
本文介绍了如何强制ASP.NET窗体身份验证使用绝对URL的参数RETURNURL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您使用ASP.NET窗体身份验证,并且要浏览到一个安全的网页像 securepage.aspx ,你会被重定向到这个网址:

When you use ASP.NET forms authentication, and you want to surf to a secure page like securepage.aspx, you would be redirected to this URL:

http://www.example.com/login.aspx?returnurl=securepage.aspx`

有没有办法让在登录页的绝对URL,如:

Is there a way to get the absolute URL in login page, like:

http://www.example.com/login.aspx?returnurl=http://www.example.com/securepage.aspx

我需要这个功能,因为我工作的一个相当复杂的SSO项目,我需要时刻与绝对URL工作。

I need this feature, because I'm working on a rather complicated SSO project, and I need to always work with absolute URLs.

推荐答案

检查此链接:http://blogs.freshlogicstudios.com/Posts/View.aspx?Id=cb739183-6a0b-46bc-9179-22aed8e60433

这篇关于如何强制ASP.NET窗体身份验证使用绝对URL的参数RETURNURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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