Quick links: Content - sections - sub sections
EN FR

Table of content

If standard drivers for jAuth don't suit your needs, you can create one.

Creation

A jAuth driver must implements jIAuthDriver interface. It is roughly equivalent to jAuth API (but does not inherit from it).

jAuth loads drivers and the drivers do all low level jobs (database access or ldap acces or text file access and so on)

If example is your driver name: you create a classe exempleAuthDriver, in a file named exemple.auth.php, and locate it in auth/example/ directory of a plugins repository.

Activation

To activate your driver, you have to set driver option in your auth plugin configuration file. Still in this file, you can add an example section and fill below all your driver specific options.


   driver=example
   
   [example]
   foo=bar