Comparing versions
Version 1Current version
There are three ways to override authentication in bitweaver:

  1. 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
    
    <?php
        
    global $gOverrideLoginFunction;
        
    $gLightWeightScan TRUE;
        
    $gOverrideLoginFunction 'bit_login_override';
        function 
    bit_login_override() {
             
    // determine bitweaverUserId from some foreign database
             
    return $biweaverUserId;
        }
    ?>
  2. The second option is to create a custom authentication plugin
  3. 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.
 
There are three ways to override authentication in bitweaver:

  1. 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
    
    <?php
        
    global $gOverrideLoginFunction;
        
    $gLightWeightScan TRUE;
        
    $gOverrideLoginFunction 'bit_login_override';
        function 
    bit_login_override() {
             
    // determine bitweaverUserId from some foreign database
             
    return $biweaverUserId;
        }
    ?>
  2. The second option is to create a custom authentication plugin. See Pluggable Authentication Tutorial
  3. 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