在同一地点使用Windows身份验证和Forms身份验证 [英] Using Windows Authentication and Forms authentication on same site

查看:508
本文介绍了在同一地点使用Windows身份验证和Forms身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我,如果它可以同时使用Windows和我的网站上窗体身份验证,而不2互相干扰。

Can anyone tell me if its possible to use both windows and forms authentication on my site without the 2 interfering with each other.

基本上,我有,我想只有某些人看到批准目的的新网站。因此,从看到网站的任何页面,我使用Windows身份验证停止任何未经授权的用户。

Basically, I have a new site that I want only certain people to see for approval purposes. Therefore to stop any unauthenticated users from seeing ANY pages of the site I was using Windows authentication.

不过,我现在已经升级的站点有使用Forms身份验证的小会员区,现在当有人路过他们被定向到表单验证页面Windows身份验证后进入该网站,即使他们应该观看页面心不是通过表单身份验证保护。

However, I've now upgraded the site to have a small members area that uses Forms authentication and now when anyone enters the site after passing windows authentication they are being directed to the forms authentication page, even though they should be viewing a page that isnt protected by forms authentication.

我基本上要wherby人谁清除Windows身份验证允许查看整个网站的情况,但需要通过formsd认证,查看该网站的会员区登录onagain。

I basically want a situation wherby anyone who clears windows authentication is allowed to view the whole site but need to log onagain via formsd authentication to view the members area of the site.

我希望这是显而易见的。

I hope this is clear.

推荐答案

(老问题,但...)

这听起来像你只是只是特定的会员区未配置表单验证,但它配置了一切。

It sounds like you just haven't configured forms authentication for just the particular members area, but have it configured for everything.

授权元素并的位置元素(如果你想控制,而不是创建一个Web.config的Web.config中主要的设置,在会员区)。

Look at the authorization element and the location element (if you want to control the settings in the main Web.config, instead of creating a Web.config for the member's area).

又见<一个href=\"http://stackoverflow.com/questions/2425514/asp-net-forms-authentication-and-a-no-authentication-subfolder\">ASP.NET窗体身份验证和[否验证和QUOT;子(除非你想反向)。

See also ASP.NET Forms Authentication and a "No Authentication" subfolder (except you want the reverse).

这篇关于在同一地点使用Windows身份验证和Forms身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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