NancyFx/Nancy — Issue #485: More granular authentication / authorization
Author: grumpydev
Created: 2012-01-23 15:48:26+00:00
State: open
Labels: Improvement

Can be as simple as adding additional helpers so you could do something like:

this.RequirestAuthentication().For("POST", "PUT");

this.RequiresClaims("blah").For("POST");

(or something along those lines)

Can also add helper methods that can be called within a specific route, although the syntax may get tricky as it needs to be clear which one is module level and which one is route level - we could set a flag on the module when the actual route is executing (rather than being constructed), but that' just horrible :P