Re: ASP application using ASP.NET Forms Authentication



You can do that - but it requires IIS6/ASP.NET 2.0 -

just do a wild card mapping in your app settings for the aspnet_isapi.

Then all calls will go through ASP.NET first, and thus through FormsAuth. But you have to find a way to "transport" the values you may care about (username, roles) from ASP.NET to ASP.

You can achieve that by deriving from DefaultHttpHandler. I wrote about it here:

http://www.leastprivilege.com/ProtectingNonASPNETResourcesWithASPNET20.aspx

I actually have a complete walkthrough of that scenario in my book (see below ;)


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Hi,

I´m working in an already developed and complex ASP Application, we
are now with some authentication problems and reading about it, I
discovered that Forms Authentication can solve our problems. Is it
possible to use forms authentication without chaging all de
application to a .NET plataform ?

Thanks,

Leandro David



.



Relevant Pages

  • Re: ASP application using ASP.NET Forms Authentication
    ... I´m working in an already developed and complex ASP Application, ... are now with some authentication problems and reading about it, ... discovered that Forms Authentication can solve our problems. ... it enables permission settings in the web.config ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • ASP application using ASP.NET Forms Authentication
    ... I´m working in an already developed and complex ASP Application, ... are now with some authentication problems and reading about it, ... discovered that Forms Authentication can solve our problems. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Global Catalog Placement
    ... users would have authentication problems. ... >> are two in each) will be GCs, ... >> can process logon requests and authenticate users. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Windows Authentication (asp.net 1.1 C#)
    ... it is up to you how you store your passwords - FormsAuth is just a mechanism ... Usually you store the passwords in a database using salted hashes - have a look at PasswordDeriveBytes class ... Authentication or Form Authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Talktalk: Anyone have a clue as to what this idiot is on about?
    ... All settings known to be saved and correct. ... From 10am today, 'Authentication failed' at router. ... authentication problems are caused by two things: ...
    (uk.telecom.broadband)