IAuthentication Exception

Topics: CAB & Smart Client Software Factory
Jul 4, 2006 at 5:29 AM
originally posted by: alexsantos


I'm using IAuthentication but when I raise a exception on IAuthenticationService.Authenticate() method my application receive a exception from Windows about `termination of program`.

How to terminate the application using IAuthentication fail ?

In any example created I see the same problem.

Alexnaldo Santos
Jul 11, 2006 at 2:32 PM
originally posted by: NickGloe

Similarly...We are having issues getting our own custom authentication working instead of WindowsPrincipalAuthenticationService... does anyone have some sample snippets where they have gotten this to work?

Much appreciated,
Feb 20, 2007 at 2:02 AM
Edited Feb 20, 2007 at 2:25 AM
if the authentication fails, terminate the application instead of throwing an exection. You could do this directly in the authenticate method or you define an exception policy to do the job if you still want to throw AuthenticationException.