R
Richard Cannock
Hi.
I am developing a sports based administration site where a user adminsters
sports leagues .e.g. a soccer league.
As i understand it, the current role based security is based on a user being
in one to many global roles for the whole web application.
In my application, a user may register with the site (making use of default
wizard), but then may proceed to be a admin in one league, but a simple user
(player/user) in another league or multiple roles (Admin, player) in a league.
Therefore, we have the concept of role specific leagues, and permissions.
Simply placing administration pages in a secure folder only accessible to
league admins will meet one requirement, but if a user is in the admin role
in any league, they'd be able to get in, and potentially administer another
persons league completely!
Therefore, the only thoughts i have had is to have two levels of security:
role based access to pages i.e. put leagueadmin.aspx in a secured folder,
only accessible to users in the league adminrole.
Then in leagueadmin.aspx code behind (assuming leagueid is passed into
querystring)
Extend User object and add method (IsUserInRoleForLeague("ADMIN"),LeagueId)
basically, is there a more elegant way than this?
Sorry for longish post!
I am developing a sports based administration site where a user adminsters
sports leagues .e.g. a soccer league.
As i understand it, the current role based security is based on a user being
in one to many global roles for the whole web application.
In my application, a user may register with the site (making use of default
wizard), but then may proceed to be a admin in one league, but a simple user
(player/user) in another league or multiple roles (Admin, player) in a league.
Therefore, we have the concept of role specific leagues, and permissions.
Simply placing administration pages in a secure folder only accessible to
league admins will meet one requirement, but if a user is in the admin role
in any league, they'd be able to get in, and potentially administer another
persons league completely!
Therefore, the only thoughts i have had is to have two levels of security:
role based access to pages i.e. put leagueadmin.aspx in a secured folder,
only accessible to users in the league adminrole.
Then in leagueadmin.aspx code behind (assuming leagueid is passed into
querystring)
Extend User object and add method (IsUserInRoleForLeague("ADMIN"),LeagueId)
basically, is there a more elegant way than this?
Sorry for longish post!