Custom implementation for User.IsInRole??

A

Arthur Dent

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top