简体   繁体   中英

Protect Classic ASP Page within an ASP.NET Application

I would like to restrict access to a classic asp page that is contained within an ASP.NET application that uses Forms Authentication.

Is there a way to configure forms authentication so that it will restrict access to these pages? I have the following in my web.config.

<location>
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
</location>

I am running in 'classic' pipeline mode and I don't have the option of switching to 'integrated'.

One option would be to embed the pages in an ASP.NET page using Server.Execute. This approach should allow you to incorporate authentication into the legacy ASP pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM