There are three ways to override authentication in bitweaver:

#The easiest method is to define a function using the gOverrideLoginFunction global variable in your kernel/config_inc.php named bit_login_override. It should {code language="php}
global $gOverrideLoginFunction;
$gLightWeightScan = TRUE;
$gOverrideLoginFunction = 'bit_login_override';
function bit_login_override() {
// determine bitweaverUserId from some foreign database
return $biweaverUserId;
}{/code}
# The second option is to create a custom authentication plugin. See ((Pluggable Authentication Tutorial))
# The third and most powerful is to overide the BitPermUser class with a custom class and do your work. This will mean your gBitUser is an object of a class by your own making. See ((Custom Authentication Tutorial)).
Page History
Date/CommentUserIPVersion
28 Feb 2007 (20:07 UTC)
spiderr66.194.217.2222
Current • Source
spiderr66.194.217.2221
View • Compare • Difference • Source