C# 클래스 HttpServer.Authentication.BasicAuthentication

Implements basic authentication scheme.
상속: IAuthenticator
파일 보기 프로젝트 열기: NyxStudios/HttpServer 1 사용 예제들

공개 메소드들

메소드 설명
Authenticate ( AuthorizationHeader header, string realm, string httpVerb ) : IAuthenticationUser

An authentication response have been received from the web browser. Check if it's correct

BasicAuthentication ( IUserProvider userProvider ) : System
CreateChallenge ( string realm ) : IHeader

Create a response that can be sent in the WWW-Authenticate header.

메소드 상세

Authenticate() 공개 메소드

An authentication response have been received from the web browser. Check if it's correct
if authenticationHeader is invalid If any of the paramters is empty or null.
public Authenticate ( AuthorizationHeader header, string realm, string httpVerb ) : IAuthenticationUser
header HttpServer.Headers.AuthorizationHeader Authorization header
realm string Realm that should be authenticated
httpVerb string GET/POST/PUT/DELETE etc.
리턴 IAuthenticationUser

BasicAuthentication() 공개 메소드

public BasicAuthentication ( IUserProvider userProvider ) : System
userProvider IUserProvider
리턴 System

CreateChallenge() 공개 메소드

Create a response that can be sent in the WWW-Authenticate header.
Argument is null.
public CreateChallenge ( string realm ) : IHeader
realm string Realm that the user should authenticate in
리턴 IHeader