C# Class WebUI.Filters.AuthAttribute

Inheritance: System.Web.Http.Filters.ActionFilterAttribute, IAuthenticationFilter
Show file Open project: kulish-alina/HR_Project

Public Methods

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

Private Methods

Method Description
GetAuthParameter ( System.Web.Http.Filters.HttpAuthenticationContext context, string &parameter ) : bool

Method Details

AuthAttribute() public method

public AuthAttribute ( ) : System
return System

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