C# Класс HttpServer.Authentication.BasicAuthentication

Implements basic authentication scheme.
Наследование: IAuthenticator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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