C# Class Nyan.Modules.Web.REST.auth.NyanAuthenticationFilter

Inheritance: IAuthenticationFilter
显示文件 Open project: bucknellu/Nyan

Private Properties

Property Type Description

Public Methods

Method Description
AuthenticateAsync ( System.Web.Http.Filters.HttpAuthenticationContext context, CancellationToken cancellationToken ) : Task
ChallengeAsync ( System.Web.Http.Filters.HttpAuthenticationChallengeContext context, CancellationToken cancellationToken ) : Task
CheckPermission ( string pCode ) : bool

Method Details

AuthenticateAsync() public method

public AuthenticateAsync ( System.Web.Http.Filters.HttpAuthenticationContext context, CancellationToken cancellationToken ) : Task
context System.Web.Http.Filters.HttpAuthenticationContext
cancellationToken System.Threading.CancellationToken
return Task

ChallengeAsync() public method

public ChallengeAsync ( System.Web.Http.Filters.HttpAuthenticationChallengeContext context, CancellationToken cancellationToken ) : Task
context System.Web.Http.Filters.HttpAuthenticationChallengeContext
cancellationToken System.Threading.CancellationToken
return Task

CheckPermission() public method

public CheckPermission ( string pCode ) : bool
pCode string
return bool