DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

20
kicks
published 5 months, 25 days ago, submitted by alley alley 5 months, 25 days ago

blog.wekeroad.com — 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.

Add a comment 1 comment | category: | Views: 4 | Get KickIt image code
tags: , , | tag it

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:
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.
posted by zigamorph zigamorph 5 months, 25 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge