I have a folder with photos and videos on a server and on that folder I prevented anonymous access and turned on Integrated windows authentication. Now I have been looking for a way for my web app to access files in that folder by passing the crendentials
in the code behind without prompting the username/password dialog box to the user. In other words if i try to directly access a file in that folder throught the browser I will get prompted to enter my crendentials but if i go throught my webapp the webapp
will pass the crendentials in the code behind...
Been looking for a solution help much appreciated..
I think giving access to Group "AUTHORITY\AUTHENTICATED USERS" to that specic folder will solve your problem[in security tab of folder properties], for the authenticated domain users, but not for anonymous.
if you wanna acheive this with your code for everyone, please refer.
While oubviously adding to username and password.. But when my webapp accesses that secured folder the user still gets prompted to enter there crendentials
Alex_808
Member
39 Points
92 Posts
need help with windows authentication
Dec 17, 2012 10:52 PM|LINK
I have a folder with photos and videos on a server and on that folder I prevented anonymous access and turned on Integrated windows authentication. Now I have been looking for a way for my web app to access files in that folder by passing the crendentials in the code behind without prompting the username/password dialog box to the user. In other words if i try to directly access a file in that folder throught the browser I will get prompted to enter my crendentials but if i go throught my webapp the webapp will pass the crendentials in the code behind...
Been looking for a solution help much appreciated..
Alex
furry
Member
584 Points
108 Posts
Re: need help with windows authentication
Dec 18, 2012 06:27 AM|LINK
I think giving access to Group "AUTHORITY\AUTHENTICATED USERS" to that specic folder will solve your problem[in security tab of folder properties], for the authenticated domain users, but not for anonymous.
if you wanna acheive this with your code for everyone, please refer.
http://www.codeproject.com/Articles/107940/Back-to-Basic-ASP-NET-Runtime-Impersonation
Alex_808
Member
39 Points
92 Posts
Re: need help with windows authentication
Dec 18, 2012 02:41 PM|LINK
Hello I added this line to my web.config
While oubviously adding to username and password.. But when my webapp accesses that secured folder the user still gets prompted to enter there crendentials
Help is much appreciated
Alex