C# 클래스 CardShop.Auth.AuthorizeUserAttribute

Used to specify a method or class that requires authentication.
상속: System.Web.Mvc.AuthorizeAttribute
파일 보기 프로젝트 열기: egreene/PracticeGDVP 1 사용 예제들

공개 메소드들

메소드 설명
AuthorizeUserAttribute ( ) : System

Requires the user to be logged in, but not of any particular role.

보호된 메소드들

메소드 설명
AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool

Will check to see if the currently-acting user has any of the provided roles. Otherwise, if no roles are specified, the check will merely be to see if the user is logged in.

HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

If the user is logged in, a 403 view will be rendered. If the user is not logged in, the action will be passed onto the default handler (asking them to login).

메소드 상세

AuthorizeCore() 보호된 메소드

Will check to see if the currently-acting user has any of the provided roles. Otherwise, if no roles are specified, the check will merely be to see if the user is logged in.
protected AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
리턴 bool

AuthorizeUserAttribute() 공개 메소드

Requires the user to be logged in, but not of any particular role.
public AuthorizeUserAttribute ( ) : System
리턴 System

HandleUnauthorizedRequest() 보호된 메소드

If the user is logged in, a 403 view will be rendered. If the user is not logged in, the action will be passed onto the default handler (asking them to login).
protected HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext
리턴 void