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-beta2
ASP.NET MVC 3 and ASP.NET MVC 4

Learn more

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

Learn more

NuGet

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

NuGet

Download

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

Download

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

2013-04-18 21:42:46

markbash

62 - PolicyViolationHandler breaks ASP.NET MVC scaffolding.

Hello. Great project here some very nice work. I did however run into a very strange bug. If I create a Policy Violation Handler with IPolicyViolat...

2013-04-13 14:42:48

imranpk

60 - Field Level Permission

Please also add feature of Field level security or it should be customizable according to the requirement.

2013-02-01 01:05:29

michaelfagre

57 - Action methods with void result can't be configured.

It does not appear to be possible to set any policy for Actionmethods which have a void return signature. FileController: ``` [HttpPos...

2012-11-03 14:20:23

mdmoura

46 - Group Policies in Class. Feature Request.

Hello, This is a feature request. Fluent Security is configured as follows: configuration.For<HomeController>().Ignore(); configurat...

2012-10-09 23:38:50

dbelcham

43 - Added ability to ignore security requirements on proxied controllers

Haven't had a huge amount of time to test this. Will try at work tomorrow. Looks like it will work though. Fixes issue 42 https://github.com/kri...

Github commits (develop)

2013-04-17 14:41:21

Kristoffer Ahl

8fb9c256fac9c8c28e23f99e83c110974bcc1a51

Merge branch 'release-2.0-beta2'

2013-04-17 14:37:30

Kristoffer Ahl

00f3fc1bc8d5c07163e8939d5833438d3f2a1cd2

- Bumped version to 2.0.0-beta2.

2013-04-17 14:27:10

Kristoffer Ahl

209ee9ad3c75f78d312c2eb35439892a1cab2170

Merge branch 'typescanning-improvement' into develop

2013-04-17 14:25:12

Kristoffer Ahl

4ce72e64b834080268e63473a0f3142b5a4a3558

- Using GetLoadableExportedTypes extension to avoid type loading issues in ProfileTypeScanner.

2013-04-17 14:24:52

Kristoffer Ahl

105b2a5fb5607f70b127d5eff4b57d5e53a27be7

- Using GetLoadableExportedTypes extension to avoid type loading issues in ControllerTypeScanner.