6

I have a website with some areas that require a login via forms-based authentication, using my own provider that connects to the database.

The website is in preview so I want to protect the entire site via basic auth to prevent unauthorized access before it goes live.

The problem is when basic and forms auth is on the pages that will be public go to the forms login instead.

How can I keep the forms based authentication for member login and portal access, but protect the entire site from public access before go-live by using basic auth?

4

1 回答 1

0

我认为您应该能够通过以下方式满足您的用例。

在站点 .Net 授权规则中,为匿名用户创建拒绝规则。

在站点身份验证启用基本和表单身份验证。禁用所有其他身份验证类型。这应该要求所有用户都通过基本身份验证才能使用基本站点,然后要求表单登录到需要您的自定义身份验证的站点部分。

于 2012-08-13T08:12:21.757 回答