Re: Custom implementation for User.IsInRole??

From: Daniel Fisher\(lennybacon\) (info_at_(removethis)lennybacon.com)
Date: 12/10/04


Date: Fri, 10 Dec 2004 17:22:04 +0100

Look at this
www.codeproject.com/aspnet/formsroleauth.asp

-- 
Daniel Fisher(lennybacon)
 MCP ASP.NET C#
 Blog: http://www.lennybacon.com/
"Arthur Dent" <hitchhikersguideto-news@yahoo.com> wrote in message 
news:uyezVag3EHA.708@TK2MSFTNGP11.phx.gbl...
>I have an app where im using FormsAuthenticaton, and doing my own 
>authentication against a users table in my db. I have no problem actually 
>getting the authentication to work as i want. When the user logs in though, 
>it is also pulling out a logical bitmapped set of roles that the user 
>belongs to. (1 = User, 2 = Admin, then ANDing and ORing against the 
>UserRoles value to determine role membership).
>
> What i am trying to figure out, is how can i use this role information as 
> the role that is verified against an "allowRoles" or "denyRoles" setting 
> in the web.config security section?
>
> Thanks in advance,
> - Arthur Dent.
>