如何确定 ASP .Net 中 iFrame 父级的身份验证方法?
我有一个网站,它在 iFrame 中托管一些子虚拟目录内容。我在父站点和虚拟目录之间设置了基于共享表单的身份验证,这样当任一目录到期时,用户将被重定向回父站点上的特定登录页面。
这很好用,但是,我需要能够从 iFrame 内确定父站点是否使用 NT 或基于 Forms 的身份验证。如果父站点使用 NT 身份验证,我希望防止 iFrame 内发生 JavaScript 重定向,只需在要在 iFrame 区域中显示的页面上留下一条消息。
I have a website which hosts some sub virtual directory content within an iFrame. I have setup shared forms based authentication between the parent site and the virtual directory such that when either expires the user is redirected back to a specific login page on the parent site.
This works great, however, I need to be able to determine from within the iFrame whether the parent site is using NT or Forms based authentication. In the event that the parent site is using NT authentication I wish to prevent a javascript redirect happening from within the iFrame and simply leave a mesage on the page to be displayed wihtin the iFrame area.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论