Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public Execute ( IRequest req, IResponse res, object requestDto ) : void | ||
req | IRequest | |
res | IResponse | |
requestDto | object | |
Результат | void |
public HasAnyRoles ( IAuthSession session ) : bool | ||
session | IAuthSession | |
Результат | bool |
public HasAnyRoles ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool | ||
req | IRequest | |
session | IAuthSession | |
userAuthRepo | IAuthRepository | |
Результат | bool |
public RequiresAnyRoleAttribute ( ) : System | ||
Результат | System |
public RequiresAnyRoleAttribute ( ApplyTo applyTo ) : System | ||
applyTo | ApplyTo | |
Результат | System |