Fluent Security configuration

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.1.0

Fluent-Security 2.0 is out!

Now with support for Caching, Profiles, Async controllers, void actions, ActionNameAttribute and much more...

Learn more

Getting started with FluentSecurity is easy. You'll be up and running in minutes.

Learn more


The easiest way to get started is to install FluentSecurity via NuGet. Search for FluentSecurity in the "Add library reference" dialog or install it through the package manager console in Visual Studio.
PM> Install-Package FluentSecurity



If you're not using NuGet you can grab the latest stable binaries from Github.


Why FluentSecurity

  • Code based configuration

    No attributes or nasty xml cluttering up your code.

  • Low imprint

    FluentSecurity won't spread like wildfire in your application. Your configuration can be kept in a single file.

  • ASP.NET MVC 4 ready

    Built against the latest version of ASP.NET MVC. Use the built in ASP.NET membership provider or roll your own security.

  • Customizable

    Don't like what's in the box? Create your own implementations and hook it in using your IoC-container.

  • Open

    Have a need for something not supported by FluentSecurity? Fork us on github, do your magic and send us the patch!

  • Tested

    FluentSecurity is used successfully in production and has a code coverage of 99%.

Blog posts

Issues & feature requests

12/8/2015 1:51:18 PM


91 - Is it possible to use a custom "AuthorizeAttribute" for one action of a controller protected by FluentSecurity

Dears, one question on how to manage a different authentication for one specific action of a controller protected by FluentSecurity. This actio...

9/15/2015 4:29:41 AM


90 - Create Web Api Nuget Package

I've been using the Web Api branch of Fluent Security in a project for almost a year. I haven't had a problem with it and it has been working great...

1/10/2015 9:24:15 AM


86 - Using FluentSecurity along with ASP.NET Identity?

Hi, I'm new to this project. it appears great. As far as I know this project is just for authorizing. right?, Now I want to use it in one of my pro...

9/4/2014 9:17:00 AM


84 - Issue with ScannerContext and exe files

I have found an issue with the scanning logic. The method FiltersMatchFile in the ScannerContext class gets all files with an extension matching "....

4/1/2014 10:36:40 AM


81 - Make internal ServiceLocator overridable with external

I like to use an own implementation of ISecurityHandler, but it looks like FluentSecurity is resolving this only with the internal ServiceLocator....

Github commits (develop)

4/21/2014 10:12:07 PM

Chandra Vedantham


Merge pull request #82 from Chandu/feature-non-action-methods Ignore NonAction actions on controller.

4/19/2014 3:48:27 PM



Added code to ignore action methods with [NonAction] attribute while picking action methods for policy construction

3/14/2014 8:32:41 PM

Kristoffer Ahl


- Added a Contributing.md file.

12/17/2013 7:23:29 PM

Kristoffer Ahl


Merge branch 'release/2.1.0' into develop

12/17/2013 7:01:04 PM

Kristoffer Ahl


- Bumped version to 2.1.0.