asp .net mvc authorization [Resolved]

Posted by Honey5 under ASP.NET on 12/11/2017 | Points: 10 | Views : 251 | Status : [Member] | Replies : 1
Hi,

What is the best way to protect certain areas of your web application in asp .net mvc. I know we can put [Authorization] attribute at each action, but this seems very tedious since you have to put it all over the place. I'm using membership provider and trying the way I used to do in postback model by setting this protection based on the folder. I use web.config <location> section to protect some folders. I tried this in mvc, it seems to be working, but most of tutorial uses the [Authorization] way.

Which one is the better method?

Thank you

KosmikTechnologies.com




Responses

Posted by: Pandyamanav on: 12/11/2017 [Member] Starter | Points: 50

Up
1
Down

Resolved
Hello

I must say so many using Authorize keyword

Which is widely accepted method

Thanks

Honey5, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response