C# Class HttpServer.Authentication.BasicAuthentication

Implements basic authentication scheme.
Inheritance: IAuthenticator
Afficher le fichier Open project: NyxStudios/HttpServer Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Authenticate() public méthode

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.
Résultat IAuthenticationUser

BasicAuthentication() public méthode

public BasicAuthentication ( IUserProvider userProvider ) : System
userProvider IUserProvider
Résultat System

CreateChallenge() public méthode

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
Résultat IHeader