IAuthentication Exception

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

Hi,

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.

Thanks,
Alexnaldo Santos
Jul 11, 2006 at 1: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,
Nick
Feb 20, 2007 at 1:02 AM
Edited Feb 20, 2007 at 1: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.

System.Environment.Exit(0)