2010-05-05 11:19:37 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2016-03-20 17:19:53 +01:00
|
|
|
* EGroupware API: Basic and Digest Auth
|
2010-05-05 11:19:37 +02:00
|
|
|
*
|
2013-03-18 09:14:47 +01:00
|
|
|
* For Apache FCGI you need the following rewrite rule:
|
|
|
|
*
|
|
|
|
* RewriteEngine on
|
|
|
|
* RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
|
|
|
*
|
|
|
|
* Otherwise authentication request will be send over and over again, as password is NOT available to PHP!
|
2013-07-15 13:06:45 +02:00
|
|
|
* (This makes authentication details available in PHP as $_SERVER['REDIRECT_HTTP_AUTHORIZATION']
|
2013-03-18 09:14:47 +01:00
|
|
|
*
|
2010-05-05 11:19:37 +02:00
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package api
|
|
|
|
* @subpackage auth
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2016-03-20 17:19:53 +01:00
|
|
|
* @copyright (c) 2010-16 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2010-05-05 11:19:37 +02:00
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
2016-03-20 17:19:53 +01:00
|
|
|
use EGroupware\Api\Header\Authenticate;
|
|
|
|
|
2010-05-05 11:19:37 +02:00
|
|
|
/**
|
|
|
|
* Class to authenticate via basic or digest auth
|
|
|
|
*
|
2016-03-20 17:19:53 +01:00
|
|
|
* @deprecated use EGroupware\Api\Header\Authenticate
|
2010-05-05 11:19:37 +02:00
|
|
|
*/
|
2016-03-20 17:19:53 +01:00
|
|
|
class egw_digest_auth extends Authenticate {}
|