ASP.NET MVC: Securing Your Controller Actions(blog.wekeroad.com)

submitted by alleyalley(2840) 3 years, 10 months ago

Many people on the forums want to know how to best protect Actions on their Controller using Forms Authentication. The MVC Team has done a nice job introducing Filters (using Attributes) to this latest drop of MVC, and in this post I’ll show you how to create a filter that can handle security.

1 comment |category: |Views: 53

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by zigamorphzigamorph(3314) 3 years, 10 months ago 0

http://www.coderjournal.com/2008/03/securing-mvc-controller-actions/

There is actually a way to do this already built in to the .NET framework and operates in side the run time. It is called PrincipalPermissionAttribute.

Reply

information Login or create an account to comment on this story