.Net Roles Authorization
From: faraz ahmed (faraz.ahmed@kalsoft.com.pk)
Date: 03/25/03
- Next message: Chris Blanco: "Re: Managed to Unmanaged security."
- Previous message: Johan Myburgh: "Configuring DCOM in workgroup mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "faraz ahmed" <faraz.ahmed@kalsoft.com.pk> Date: Tue, 25 Mar 2003 03:46:37 -0800
Hi!
I'm using Form based authentication with .Net roles
authorization from database, i'm getting problem
in retrieving roles back from
FormsAuthenticationTicket.UserData, all other properties
are
restoring but UserData is coming "", so i'm enable to
create GenericPrinciple object with the roles of the user.
I'm using this setting in web.config in order to authorize
CreateUser.aspx for specified roles,
<location path="CreateUser.aspx">
<system.web>
<authorization>
<deny
users="?"></deny>
<allow
roles="Administrator"></allow>
</authorization>
</system.web>
</location>
I want to know few things:
1) Now, if this is a correct way than it'll be very
difficult to set roles for each page. And
even this is not correct if i divide pages in different
folders.
2) This is hard code stuff i.e. i can't create new roles
and edit existing roles dynamicaly,
i.e. i want to add/ edit roles through database.
Thanks for your concentration....
faraz
- Next message: Chris Blanco: "Re: Managed to Unmanaged security."
- Previous message: Johan Myburgh: "Configuring DCOM in workgroup mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|