Re: Protect file with different extension from .aspx

From: Juan Antonio Tubío (jatubio_at_saluddigital.net)
Date: 03/30/05


Date: Wed, 30 Mar 2005 21:54:57 +0200

I think that the best solution is a 'mixed authentication' between
'windows authentication' and 'forms authentication'. Setup 'Windows
Authentication' to protect a full folder (automatically for all file
types) and when the user try to access them, show a login form (can
check the user in a custom database) and 'internally' do a 'Windows
Login' with a Windows User.

But i don't know hot to do it..

gabe garza escribió:
> Create an ASPX page that'll download the file to the user.
> Example. http://www.servername.com/getfile.aspx?filename=3928393293
>
> Now you can still use form authentication.
>
> Make sure in getfile.aspx to set your Content-Type and Content-Disposition
> properly.
>
> I did a similar thing for a client that wanted images sent from an AS/400
> computer to be displayed in a client browser, but only if a valid user was
> logged into the system.
> I also made sure that 3928393293 was only valid for the user that requested
> the image and that 3928393293 could only be used once. Some users bookmarked
> the URL but the client didn't want that.
>
>
> "Alessandro Zucchi" <AlessandroZucchi@discussions.microsoft.com> wrote in
> message news:396D536D-13DA-40A2-93DD-F26DE9C5B795@microsoft.com...
>
>>Hi,
>>I'm developing an asp.net application. I'm using form authentication.
>>All runs with page aspx, but when I try to connect to a protected file
>>diverse to an aspx (such as a PDF file) and I'm not authenticated , the
>>application download the file instead of redirect to the predefined login
>>page.
>>Anyone can help me ?
>>
>>Best regards
>>alex
>>
>>
>
>
>



Relevant Pages

  • RE: How to start/stop windows service on a remote machine?
    ... impersonate the client user(authenticated via integrated windows ... authentication in IIS) and access some remote protected resource(windows ... the problem you meet is a typical windows ... want to continue access other remote machine, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: SP1 und Netzwerkauthentifizierung 802.1x
    ... Es gab mal ein Problem wenn das Client Certificat ... 953650 You cannot connect to an 802.1X wired network after you upgrade to Windows XP Service Pack 3 ... 838502 802.1x client authentication fails when you connect to a Windows Server ... IAS Best Practices: ...
    (microsoft.public.de.windows.vista.installation)
  • RE: 802.1x, Computers, Wired Security
    ... client to use EAP-TLS. ... Authentication-Provider = Windows ... Wired 802.1X Authentication failed. ... Network Adapter: Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler ...
    (microsoft.public.windows.server.active_directory)
  • RE: IEEE 802.1x & dynamic vlan assignment
    ... You must configure the 802.1X client to send an EAP-logoff ... user authentication behavior of Windows XP and Windows Server 2003. ... - Computer authentication mode. ...
    (Focus-Microsoft)
  • RE: Sharepoint prompts for login credentials when not necessary
    ... \par Based on my experience, if this issue occurs on all the client, you need to check the Authentication Settings: ... \par Also, add the SharePoint site to your IE trusted zone, and make sure the "Automatic logon with current user name and password" is selected under User Authentication section in the Trusted Sites Security Settings. ... \par You are prompted to enter your credentials when you access an FQDN site by using a Windows Vista-based client computer that has no proxy configured ... \par login prompt and I can get in/open the document or do whatever I was doing. ...
    (microsoft.public.sharepoint.windowsservices)