C# 클래스 WebUI.Filters.PermissionAuthorizationAttribute

상속: System.Web.Http.AuthorizeAttribute
파일 보기 프로젝트 열기: kulish-alina/HR_Project

보호된 메소드들

메소드 설명
IsAuthorized ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool

Main action to check if user has authorities to acesss

비공개 메소드들

메소드 설명
hasClaim ( IEnumerable claims ) : bool

Checks on users permission on access to action

hasFlag ( string value, AccessRight permission ) : bool

Checking on if user has in its claims the specific one neeeded

isTypeCorrect ( string type ) : bool

The function that checks on corresponding claim type

메소드 상세

IsAuthorized() 보호된 메소드

Main action to check if user has authorities to acesss
protected IsAuthorized ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
actionContext System.Web.Http.Controllers.HttpActionContext Context of user trying to access resouce
리턴 bool