Role based security

Results 1 to 2 of 2

Thread: Role based security

  1. #1
    Join Date
    Dec 1969

    Default Role based security

    hi!<BR>I&#039;m trying to implement a simple role-based security mechanism using Generic Identity and GenericPrincipal classes. I create the role list by passing the array of roles to the GenericPrincipal constructor and assigning this principal to the current thread. The problem is that I can not verify the roles as soon as the user is redirected to the next page by RedirectFromLoginPage, i.e. IsInRole("role") always returns false, even though it returns true at the time when the principal is created. The user name can be retreived OK, though. Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: Role based security

    Hi,<BR>I have the same problem too but in a different way. The first role is recognized throughout the application but not the 2nd, 3rd,etc. roles!!!<BR><BR>Thanks for helping.<BR><BR>Mazen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts