Ask a Question related to ASP.NET Security, Design and Development.
-
Arthur Dent #1
Custom implementation for User.IsInRole??
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.
Arthur Dent Guest
-
User.IsInRole is always FALSE
Hi, I have the following problem... Pre-requisites: Installation of an Asp.net webservice on a IIS5 server (win2k). Anonymous access is not... -
isInRole doesn't work for one user, but works for everyone else
I have an ASP.NET/C# application in which I verify that the current user is a member of a list of roles before giving them access to particular... -
ASP.NET Context.User.IsInRole XP Problem
Hi guys I am having a problem with the following line of code on Windows XP Pro. The variable userRole is a string depicting my role on the local... -
User.IsInRole not redirecting
Hi there, I have been reading up on Authorization and role based security for a couple of days now, and am trying to implement this in my... -
Question: COntext.User.IsInRole
You would set them in your global.asax in the Authenticate event. -- John Saunders Internet Engineer john.saunders@surfcontrol.com "VB... -
Daniel Fisher\(lennybacon\) #2
Re: Custom implementation for User.IsInRole??
Look at this
[url]www.codeproject.com/aspnet/formsroleauth.asp[/url]
--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: [url]http://www.lennybacon.com/[/url]
"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.
>
Daniel Fisher\(lennybacon\) Guest



Reply With Quote

