Re: User management with Windows Authentication
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 09/16/05
- Previous message: jfer: "Re: User management with Windows Authentication"
- In reply to: jfer: "Re: User management with Windows Authentication"
- Next in thread: jfer: "Re: User management with Windows Authentication"
- Reply: jfer: "Re: User management with Windows Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 15 Sep 2005 22:11:58 -0700
Hello jfer,
in Authenticate_Request
// get the roles
string[] roles = _getRoles(Context.User.Identity.Name);
// create new prinicipal
GenericPrincipal p = new GenericPrincipal(Context.User.Identity, roles);
// set new user
Context.User = p;
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Yes I want to store the roles in SQL but I am having problems
> understanding how to attach the roles to the user. I was initially
> using Forms Authentication and the new RoleManager aspect of ASP.NET
> 2.0 to pull roles from SQL for users. However I realized forms
> authentication is not a viable solution to another aspect of my tool
> so I need windows authentication with the rolemanager for
> authorization elements. Is it possible to mix these? Thanks for
> insight
>
- Previous message: jfer: "Re: User management with Windows Authentication"
- In reply to: jfer: "Re: User management with Windows Authentication"
- Next in thread: jfer: "Re: User management with Windows Authentication"
- Reply: jfer: "Re: User management with Windows Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|