Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have hosted an application and windows authentication is enabled.
I need to give access to particular page to all with out asking for login details.

My requirement is to click a link on email and I need to download the document. I will be redirecting to specific page in the application hosted with windows authentication enabled.

What I have tried:

<location path="Test.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
Posted
Updated 23-Apr-19 1:42am

ASP.NET is a decade obsolete. You need to add 'aspx' to your google search to find old pages

Easy Integrated Active Directory Security in ASP.Net | Splinter Software[^]

I think this will do it
 
Share this answer
 
Comments
nandakishoreroyal 23-Apr-19 3:37am    
Is it possible to give access to all users, not to specific role in the domain.
Christian Graus 23-Apr-19 3:38am    
If you're deploying within a domain, then there's no security needed if everyone can use it. Just deploy on an intranet.
There are 2 parts to using Windows Authentication within a website; Authentication and Authorization.

The way your web.config is setup is to use Windows Authentication, and you are Authorizing All Users from that.

What I believe you want is to not go through that Windows Authentication; so for that directory you would need to set it to Anonymous Authentication
XML
<location path="">
   <system.webServer>
      <security>
         <authentication>
            <anonymousAuthentication enabled="true" />

ASP.NET Web.config authentication/authorization settings - Stack Overflow[^]

It does get a little tricky to work with; I would be tempted to make a 1 page website and make it a separate web application that is just "open"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900