Method | Description | |
---|---|---|
AssertRequiredRoles ( IRequest request ) : void |
Check all session is in all supplied roles otherwise a 401 HttpError is thrown
|
|
Execute ( IRequest req, IResponse res, object requestDto ) : void | ||
HasAllRoles ( IAuthSession session ) : bool | ||
HasAllRoles ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool | ||
RequiredRoleAttribute ( ) : System | ||
RequiredRoleAttribute ( 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 HasAllRoles ( IAuthSession session ) : bool | ||
session | IAuthSession | |
return | bool |
public HasAllRoles ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool | ||
req | IRequest | |
session | IAuthSession | |
userAuthRepo | IAuthRepository | |
return | bool |
public RequiredRoleAttribute ( ApplyTo applyTo ) : System | ||
applyTo | ApplyTo | |
return | System |