Re: Security Strategy for both WIndows Forms and Web Forms



Hello,

you can use the forms-authentication schema of the ASP.NET Framework. To
include your own authentication scheme you need to implement a method named
FormsAuthentication_OnAuthenticate in your global.asax. This method must
have the following signature:

public void FormsAuthentication_OnAuthenticate(object sender,
FormsAuthenticationEventArgs args)

Look for articles on FormsAuthentication on the net and in the MSDN for more
information.

Greetings,
Henning Krause

"thebruce" <bruce_pearson@xxxxxxxxxxx> wrote in message
news:1140122808.403672.253960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I need to design a custom security Authentication and Authorization
framework that is unified for both windows and web applications. A
number of articles, including this one,
http://www.codeguru.com/csharp/csharp/cs_misc/security/article.php/c7415/
detail implementing custom IIdentity and IPrincipal with an SQL
backend.

Will this approach work for web-based applications. If so, what needs
to be persisted in session state and what's the best approach for doing
it?

Thanks,
Bruce Pearson
Kern County Sheriff Dept.



.



Relevant Pages

  • Re: Is ther any wrapper framework dll available for gdi32,user32
    ... A good way to make irregularly shaped forms and controls is to use the ... There are a few articles out on the internet that walk through how to create ... "TusharP" wrote in message ... > Is there any similar framework dlls for gdi32.dll, ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: Custom TypeConverter for PointF, SizeF, RectangleF
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... > Is it possible to assign a TypeConverterAttribute to an existing .NET ... > Framework class or structure? ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Why TCL?
    ... A great "full stack" web framework in the vein of Rails, TurboGears, ... Tcl space like the other have where we could post articles and then ...
    (comp.lang.tcl)
  • Re: gdip exception
    ... Bob Powell [MVP] ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Obviously I'm supposing that a fresh install of the framework doesn't ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: gdip exception
    ... I woult think that at worst you'd have to reinstall the framework on the ... target machine. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Do I have to reinstall windows? ...
    (microsoft.public.dotnet.framework.drawing)