L'agent AuthBasic est un agent spécial qui utilise l'authentification web basique pour authentifier dans un hôte virtuel et qui utilise ensuite les règles d'autorisation pour valider les accès à l'hôte virtuel.
The Handler will send a WWW-Authenticate header to the client, to request user and password, and then check the credentials using SOAP getCookies web service. Lorsque la session est validée, l'agent examine les autorisations comme un agent standard.
Ce peut être pratique pour autoriser une application cliente à accéder à un hôte virtuel avec un authentifiant en envoyant un en-tête basique.
Configure the virtual host like other protected virtual host but use AuthBasic Handler instead of default Handler.
PerlModule Lemonldap::NG::Handler::Specific::AuthBasic <VirtualHost *:80> ServerName basic.example.com # Load AuthBasic Handler PerlHeaderParserHandler Lemonldap::NG::Handler::Specific::AuthBasic ... </VirtualHost>
PerlSetEnv PERL_LWP_SSL_VERIFY_HOSTNAME 0
Aucun paramètres n'est requis. Il faut en revanche autoriser le service web des sessions, voir le backend de sessions SOAP.