Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created September 5, 2012 13:27
Show Gist options
  • Save jmarnold/3636506 to your computer and use it in GitHub Desktop.
Save jmarnold/3636506 to your computer and use it in GitHub Desktop.
Authentication import
public class MyRegistry : FubuRegistry
{
public MyRegistry()
{
// There are services registered here but there are a couple of defaults missing and it's confusing
Import<ApplyAuthentication>(x => {
// By default we exclude actioncalls/models with the NotAuthenticatedAttribute
x.Exclude(chain => chain.SomeCustomFilter());
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment