You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.0 KiB
83 lines
3.0 KiB
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
|
lang="en" dir="ltr">
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title></title>
|
|
<!-- metadata -->
|
|
<meta name="generator" content="Offline" />
|
|
<meta name="version" content="Offline 0.1" />
|
|
<!-- style sheet links -->
|
|
<link rel="stylesheet" media="all" type="text/css" href="../../../css/all.css" />
|
|
<link rel="stylesheet" media="screen" type="text/css" href="../../../css/screen.css" />
|
|
<link rel="stylesheet" media="print" type="text/css" href="../../../css/print.css" />
|
|
|
|
</head>
|
|
<body>
|
|
<div class="dokuwiki export">
|
|
|
|
|
|
|
|
|
|
<h1><a name="authbasic_handler" id="authbasic_handler">AuthBasic Handler</a></h1>
|
|
<div class="level1">
|
|
|
|
</div>
|
|
<!-- SECTION "AuthBasic Handler" [1-33] -->
|
|
<h2><a name="presentation" id="presentation">Presentation</a></h2>
|
|
<div class="level2">
|
|
|
|
<p>
|
|
|
|
The AuthBasic Handler is a special Handler that will us AuthBasic to authenticate to a virtual host, and then play authorizations rules to allow access to the virtual
|
|
host.
|
|
</p>
|
|
|
|
<p>
|
|
The Handler will send a <acronym title="World Wide Web">WWW</acronym>-Authenticate header to the client, to request user and password, and then check the credentials using <acronym title="Simple Object Access Protocol">SOAP</acronym> getCookies web service. When session is granted, the Handler will then check the authorizations like the standard Handler.
|
|
</p>
|
|
|
|
<p>
|
|
This can be useful to allow an third party application to access a virtual host with users credentials by sending a Basic challenge to it.
|
|
</p>
|
|
|
|
</div>
|
|
<!-- SECTION "Presentation" [34-634] -->
|
|
<h2><a name="configuration" id="configuration">Configuration</a></h2>
|
|
<div class="level2">
|
|
|
|
</div>
|
|
<!-- SECTION "Configuration" [635-661] -->
|
|
<h3><a name="virtual_host_in_apache" id="virtual_host_in_apache">Virtual host in Apache</a></h3>
|
|
<div class="level3">
|
|
|
|
<p>
|
|
|
|
Configure the virtual host like other <a href="../../documentation/1.3/configvhost.html" class="wikilink1" title="documentation:1.3:configvhost">protected virtual host</a> but use AuthBaisc Handler instead of default Handler.
|
|
</p>
|
|
<pre class="code file apache"><<span class="kw3">VirtualHost</span> *:80>
|
|
<span class="kw1">ServerName</span> basic.example.com
|
|
|
|
<span class="co1"># Load AuthBasic Handler</span>
|
|
PerlRequire __HANDLERDIR__/MyHandlerAuthBasic.pm
|
|
PerlHeaderParserHandler My::AuthBasic
|
|
|
|
...
|
|
|
|
</<span class="kw3">VirtualHost</span>></pre>
|
|
|
|
</div>
|
|
<!-- SECTION "Virtual host in Apache" [662-1074] -->
|
|
<h3><a name="handler_parameters" id="handler_parameters">Handler parameters</a></h3>
|
|
<div class="level3">
|
|
|
|
<p>
|
|
|
|
No parameters needed. But you have to allow sessions web services, see <a href="../../documentation/1.3/soapsessionbackend.html" class="wikilink1" title="documentation:1.3:soapsessionbackend">SOAP sessions backend</a>.
|
|
</p>
|
|
|
|
</div>
|
|
<!-- SECTION "Handler parameters" [1075-] --></div><!-- closes <div class="dokuwiki export">--> |