Method | Description | |
---|---|---|
AssertRequiredRoles ( IRequest request ) : void |
Check all session is in any supplied roles otherwise a 401 HttpError is thrown
|
|
Execute ( IRequest req, IResponse res, object requestDto ) : void | ||
HasAnyRoles ( IAuthSession session ) : bool | ||
HasAnyRoles ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool | ||
RequiresAnyRoleAttribute ( ) : System | ||
RequiresAnyRoleAttribute ( ApplyTo applyTo ) : System |
public static AssertRequiredRoles ( IRequest request ) : void | ||
request | IRequest | |
return | void |
public Execute ( IRequest req, IResponse res, object requestDto ) : void | ||
req | IRequest | |
res | IResponse | |
requestDto | object | |
return | void |
public HasAnyRoles ( IAuthSession session ) : bool | ||
session | IAuthSession | |
return | bool |
public HasAnyRoles ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool | ||
req | IRequest | |
session | IAuthSession | |
userAuthRepo | IAuthRepository | |
return | bool |
public RequiresAnyRoleAttribute ( ApplyTo applyTo ) : System | ||
applyTo | ApplyTo | |
return | System |