C# Class Api.RequireScopeAttribute

Inheritance: System.Web.Http.Filters.AuthorizationFilterAttribute
ファイルを表示 Open project: auth0-samples/auth0-api-auth-samples

Public Methods

Method Description
OnAuthorizationAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, System cancellationToken ) : System.Threading.Tasks.Task
RequireScopeAttribute ( string scope ) : System

Private Methods

Method Description
HasScopeClaim ( ClaimsPrincipal principal, string scope ) : bool

Method Details

OnAuthorizationAsync() public method

public OnAuthorizationAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, System cancellationToken ) : System.Threading.Tasks.Task
actionContext System.Web.Http.Controllers.HttpActionContext
cancellationToken System
return System.Threading.Tasks.Task

RequireScopeAttribute() public method

public RequireScopeAttribute ( string scope ) : System
scope string
return System