C# Class Account.Filters.CustomAuthenticationFilter

自定义认证
Inheritance: System.Attribute, IAuthenticationFilter
Exibir arquivo Open project: KINGGUOKUN/Account

Public Methods

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

Private Methods

Method Description
AuthenticateAsync ( HttpRequestMessage request ) : Task

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