Custom login problem with roles

Custom login problem with roles

Old forum URL: forums.lhotka.net/forums/t/1837.aspx


f.scherer posted on Monday, November 27, 2006

Hi,

like in the ptracker web application i do a login, passing username and password. In the usp ther is a second select statement which return the roles the username is in. When i debug, i see that the mRoles list object is filled with the roles from the database.

The problem is that when i want to do an ApplyAuthorizationRules like in the ptracker application, the IsInRole method from the custom principal object isnt called.

Can somebody tell me why this is. I didnt find a solution on that yet.

Thanks for your help in advance,

frank.

Copyright (c) Marimer LLC