Fluent Security configuration
for ASP.NET MVC

FluentSecurity provides a fluent interface for configuring security in ASP.NET MVC.
No attributes or nasty xml, just pure love.
Go get it on NuGet!

PM> Install-Package FluentSecurity

Version 2.0.0
ASP.NET MVC 3 and ASP.NET MVC 4

Release notes

See the commit history for the full release notes of each release.

FluentSecurity 1.4.0

  • Added RemovePolicy<TSecurityPolicy>(predicate)
  • Marked RemovePoliciesFor as obsolete
  • Added support for changing the default PolicyExecutionMode to "stop on first violation"
  • Added missing .Clear() in DefaultPolicyAppender for RequireAllRolesPolicy

Released 2011-12-02. Thanks to Vish

FluentSecurity 1.3.0

  • Added new policy (RequireAllRolesPolicy)
  • Added support for using delegate policies (DelegatePolicy)
  • Added Has<T>(predicate) and DoesNotHave<T>(predicate) expectation helpers
  • Added support for scanning for all controllers in namespace of a type ForAllControllersInNamespaceContainingType
  • Marked PolicyViolationException<T> as depricated

Released 2011-11-09. Thanks to Vish and Marius Schulz

FluentSecurity 1.2.0

Released 2011-08-09.

FluentSecurity 1.1.0

  • Added support for scanning for all controllers in:
    • The calling assembly (ForAllControllers)
    • A specified assembly (ForAllControllersInAssembly)
    • Assembly containing type (ForAllControllersInAssemblyContainingType)

Released 2011-07-04.

FluentSecurity 1.0

Released 2011-06-19.