如何确定 ASP .Net 中 iFrame 父级的身份验证方法?

发布于 2024-08-23 01:31:47 字数 233 浏览 2 评论 0原文

我有一个网站,它在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文