除了成员资格提供程序之外,ASP.net 还使用 URL 参数进行身份验证
我当前的 ASP.net 3.5 站点使用成员资格提供程序来管理 web.config 中定义的整个站点的身份验证。
我想提供一种通过在 URL
ex 中传递用户参数来进行身份验证的附加方法。 http://site.com?user=foo&pass=bar
什么是实现此目的的最佳方法,也必须能够在调用默认身份验证之前调用它,这是我现在遇到的问题。
My current ASP.net 3.5 site uses a Membership Provider to manage authentication for the entire site defined in the web.config.
I want to provide an additional method to authenticate by passing user params in the URL
ex. http://site.com?user=foo&pass=bar
What is the best method to achieve this, also this must be able to be invoked before the default authentication is invoked which is the problem I am running into now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
知道了。身份验证重定向到 Login.aspx。
从那里我可以从 ReturnURL 获取参数
然后
Got it. Authentication redirects to Login.aspx.
From there I can get the params from the ReturnURL
Then