Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Authentication
Message
 
To
05/01/2004 08:52:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00863824
Message ID:
00863834
Views:
22
Steve,

>I am building a project for an Intranet application in which I don't want the users to log in to the application specifically - if they have already logged in to Windows. I still want to use the role-based security within the framework to manage application users. If the user is already authenticated via Windows/IIS, I would like to pick up the userid from the HttpContext and register the user with the application. It looks like the SecurityMgr.RegisterUser will handle the registration for me, but at what point in the application should this be done? Can I do it without a password? Is there a better approach?

You may want to override the mmBusinessWebPage.RedirectToLogin() method. If you set a page's RequiresSecurity property to true, it executes RedirectToLogin() which, by default, takes the user to the UserLogin.aspx page. You can change this so it grabs the user ID from the environment and registers the user with the User Manager. To see the code you need for this, check out the MM .NET mmBaseUserLogin.aspx page's Login() method.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform