asp.net - Web.config for authorization of a private user folder -


I have a personal folder with thousands of user folders, which is only available by the right user. Can not reach. I can only think about creating a web.config authorization rule for each user's subfolder. In this case, give me a web. There is no need to add each rule to each user in the config file.

I am thinking that there is no other way to deal with this problem, just one web. Instead of creating a unique web.config file for each user using config.

On the other hand, you can create your own authorization handler, which will allow users to register their own directory In this case, there will be a starting point for request_authorization event handler in Global.assx.

The advantage of doing this is that you can manage all permissions from a single source, such as the database.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -