Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pluggable authentication for your FubuMVC application
C# JavaScript CSS Other

This branch is even with DarthFubuMVC:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
packaging/nuget
src
.gitignore
Gemfile
TESTS.txt
VERSION.txt
history.xml
rakefile.rb
readme.md
ripple.config

readme.md

FubuMVC.Authentication

Provides a pluggable authentication infrastructure for your FubuMVC application.

How do I use it?

Step 1. Simply install it via NuGet:

Install-Package FubuMVC.Authentication

Step 2. Implement the services

If you run as-is, the bottle will blow up on you (on purpose) telling you that you're missing two things: 1) IAuthenticationService and 2) IPrincipalBuilder.

You will need to implement and register both of these custom-tailored services.

Step 3. [Optional] Configuration

If you wish to configure how the Bottle is applied, you can do the following:

Import<ApplyAuthentication>(x => {
    // Explictly state which behavior chains to authenticate
    x.Include(chain => ...);

    // Explicitly state which behavior chains to exclude from authentication
    x.Exclude(chain => ...);

    // By default, you get ~/login and ~/logout (with extensibility points). Use this method to turn them off.
    // If you use the defaults, just create a view that is typed against FubuMVC.Authentication.LoginRequest.
    x.DoNotIncludeEndpoints();
});
Something went wrong with that request. Please try again.