C# Class Nancy.Security.NancyModuleExtensions

Show file Open project: NancyFx/Nancy.MSOwinSecurity

Public Methods

Method Description
RequiresMSOwinAuthentication ( this module ) : void

This module requires the user is authenticated with Microsoft Owin authentication.

RequiresSecurityClaims ( this module, bool>.Func isValid ) : void

This module requires the security claims to be validated. If the users claims do not match the required claims then a HttpStatusCode.Forbidden is returned.

Private Methods

Method Description
InvokeBeforePipeLine ( this module, NancyContext context ) : Response

Method Details

RequiresMSOwinAuthentication() public static method

This module requires the user is authenticated with Microsoft Owin authentication.
public static RequiresMSOwinAuthentication ( this module ) : void
module this Module to enable
return void

RequiresSecurityClaims() public static method

This module requires the security claims to be validated. If the users claims do not match the required claims then a HttpStatusCode.Forbidden is returned.
public static RequiresSecurityClaims ( this module, bool>.Func isValid ) : void
module this
isValid bool>.Func
return void