Print Page | Close Window

[Resolved]Forms Authentication

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=678
Printed Date: 11-Jun-2026 at 7:53am


Topic: [Resolved]Forms Authentication
Posted By: orcities
Subject: [Resolved]Forms Authentication
Date Posted: 07-Feb-2008 at 9:51am
I am using forms authentication. When I try and cancel at the login screen I would like to close the app. The problem is that everytime I do, Application.Exit, it continues to try and do authentication and throws an error.
 
Also, when an invalid login occurs in continues on to the app and just doesn't show pages that the user is not a member of.  The problem I have found is that the credentials are always authenticated. And I can't set the authentication myself.
 
 
Any help/direction would be great.



Replies:
Posted By: Bill Jensen
Date Posted: 08-Feb-2008 at 11:43am

Credential gathering and authentication should be implemented in your AppAuthenticationService in the Foundation module.  If the login fails or is canceled, you should throw a specific exception type.  You'll then need to handle that exception type in your ShellApplication.

The default server-side LoginManager (in the Model project) contains code that translates logins if the DEBUG compile flag is set.  This might be causing unknown users to login as "guest".
 
Bill J.



Print Page | Close Window