diff options
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 26d208a1f..f9d00b9b1 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -85,8 +85,15 @@ define('AUTH_DELETE',16); define('AUTH_ADMIN',255); + // do the login either by cookie or provided credentials if($conf['useacl']){ - auth_login($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); + // external trust mechanism in place? + if(auth_canDo('trustExternal') && !is_null($auth)){ + $auth->trustExternal($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); + }else{ + auth_login($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); + } + //load ACL into a global array if(is_readable(DOKU_CONF.'acl.auth.php')){ $AUTH_ACL = file(DOKU_CONF.'acl.auth.php'); |