Skip to content

Instantly share code, notes, and snippets.

@softwarejc
Last active January 31, 2016 07:57
Embed
What would you like to do?
// Configure authorization
services.AddAuthorization(options => options.AddPolicy(CookieMonsterSecurity.OnlyGoodMonstersPolicy, policy =>
{
policy.AuthenticationSchemes.Add(CookieMonsterSecurity.CookieMonsterAuthenticationSchema);
// Our own requirement logic...
policy.AddRequirements(new IsGoodMonsterRequirement());
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment