C# 클래스 WebApiDoodle.Web.MessageHandlers.ApiKeyAuthenticationHandler

상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: tugberkugurlu/WebAPIDoodle

공개 메소드들

메소드 설명
ApiKeyAuthenticationHandler ( string apiKeyQueryParameter ) : System

보호된 메소드들

메소드 설명
AuthenticateUser ( string apiKey, HttpRequestMessage request, CancellationToken cancellationToken ) : IPrincipal

The method which is responsable for authenticating the user based on the provided API Key and request.

SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

메소드 상세

ApiKeyAuthenticationHandler() 공개 메소드

public ApiKeyAuthenticationHandler ( string apiKeyQueryParameter ) : System
apiKeyQueryParameter string
리턴 System

AuthenticateUser() 보호된 추상적인 메소드

The method which is responsable for authenticating the user based on the provided API Key and request.
protected abstract AuthenticateUser ( string apiKey, HttpRequestMessage request, CancellationToken cancellationToken ) : IPrincipal
apiKey string
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
리턴 IPrincipal

SendAsync() 보호된 메소드

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
리턴 Task