.Net Roles Authorization

From: faraz ahmed (faraz.ahmed@kalsoft.com.pk)
Date: 03/25/03


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



Relevant Pages

  • Re: How to update data inside a text file in Java ?
    ... Actually I used database in the server side. ... database in client will bias the target. ... authorization of the user is ...
    (comp.lang.java.programmer)
  • Re: How to update data inside a text file in Java ?
    ... I'm not using database, ... authorized the user when the network connection is down. ... database in client will bias the target. ... authorization of the user is ...
    (comp.lang.java.programmer)
  • Re: How to update data inside a text file in Java ?
    ... I'm not using database, ... authorized the user when the network connection is down. ... database in client will bias the target. ... authorization of the user is ...
    (comp.lang.java.programmer)
  • Re: Access control
    ... At the moment I'm trying to create an Access control system (the ... the authorizations for the user and created an array of authorized ... authorization array, ... should the database look and how do I retrieve the information needed? ...
    (comp.lang.php)
  • Re: URL Authorization
    ... There are some additional user data, ... from the database, that will be used in the various applications. ... This data will go across applications. ... >> books that I have read, the url authorization is in the web.config file, ...
    (microsoft.public.dotnet.framework.aspnet.security)