在使用同一站点基本身份验证和Forms身份验证 [英] Using Basic Authentication and Forms authentication on same site

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

问题描述

任何人都可以,如果可能告诉我,在我的网站上使用基本和表单认证,而不2互相干扰。

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

我有,我想只有某些人看到审批的目的一个新的站点。

I have a new site that I want only certain people to see for approval purposes.

到该网站有一个使用窗体身份验证,现在当有人路过他们被定向到窗体身份验证页面基本身份验证后进入该网站,即使他们应该查看的心不是受表单身份验证保护的网页会员区。

The site to has a members area that uses Forms authentication and now when anyone enters the site after passing basic 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人谁清除基本身份验证可以再查看整个网站排除该网站,他们需要通过窗体身份验证登录的会员区。

I need a situation wherby anyone who clears basic authentication can then view the whole site excluding the members area of the site where they will need to log in via forms authentication.

推荐答案

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

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).

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

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