Custom Authentication

An overview of bitweaver authentication methods and how to customize them for your needs.

Created by: spiderr, Last modification: 28 Feb 2007 (20:07 UTC)
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.