Re: secure a folder



The majority of people find in the documentation that when using
ASP.NET 2.0 one can use the membership provider and the role provider
patterns to accomplish what you seek. I am not sure what Profile has to
do with your request.

If you are not using a database you can use XML and the
ReadOnlyXmlMembershipProvider for your members.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ASPNETProvMod_Prt1.asp

There is a also ReadOnlyXmlRoleProvider mentioned there.

Perhaps you can draw from those examples to determine how to tie in
your Users class.

After you validate a user using membership and forms authentication,
you allow and deny them access to folders based on their user names
and/or based on their roles using the authorization element in the
system.web section of web.config or in a location section.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfauthorizationsection.asp

AFAIK, If you don't want to go the provider route then you can look
into handling credential validation yourself and also handle the
applications authenticate event to create and populate your own
Principal and Identity and still benefit from the authorization tag
feature.

.



Relevant Pages

  • Membership and Role Provider Discussion
    ... Role Provider and how it relates to the overall Microsoft goal. ... been researching the membership and role providers to help me out. ... application, but when you are developing an enterprise app, I'm not so sure ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Defining Groups with AD users
    ... For ASP.NET authentication and role based authorization, ... you can configure the membership to use AD ... membership provider and Rolemanager to use SQL server provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Defining Groups with AD users
    ... For ASP.NET authentication and role based authorization, ... you can configure the membership to use AD ... membership provider and Rolemanager to use SQL server provider. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MS ADAM: How strategic is a) MS ADAM and b) Authorizaion Manager?
    ... I'm not really sure on all of the details on the AD membership provider as I ... > I hadn't found ActiveDirectoryMembershipProvider in any of the TechEd ... I think the issue here is that AzMan is a much ...
    (microsoft.public.windows.server.active_directory)
  • Re: Replacing VS .NETs SQL Server Express Edition Integration
    ... You could write a custom membership provider. ... You could add the tables you need to your existing database table. ... As for configuring ASP.NET 2.0 membership to connect SQL Server 2000, ...
    (microsoft.public.dotnet.framework.aspnet)