Role based Authorization (User.IsInRole("Administrator"))

I have recently inherited an existing system and I need to access the User.IsInRole function from with the Authenticate method -- is this possible.

Once the Authenticate method is executed User object is always available but is *not* populated when one tries to access it in the Authenticate method itself.

The application uses the in built login controls. the environment is .net 2.0.


Who is Participating?
tiagosalgadoConnect With a Mentor Commented:
Instead of User.IsInRole, use Roles.IsUserInRole("username","Your Role")
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.