Warning, if you are using this plugin in slave mode with Drupal, Joomla or Wordpress, and encounter problems for connecting to AjaXplorer with the REST clients (iPhone/iPad, webDav), you have to upgrade the plugin. More info can be found here
Generic plugin used for integration with various CMS. In master mode, when you login, AjaXplorer will silently call a predefined URL to also log you on the external application. In slave mode, the plugin is not straightforward to implement, you should check the wordpress and joomla implementation for more examples. Basically, in slave mode, it works as follow :
- Install AjaXplorer with a " standard " authentification plugin, and update your " admin " user with your own password.
- Then switch to this auth.remote plugin in the server/conf/conf.php file.
- In the config, set a secret key (can be anything, not necessary your admin password, beware of " anti-slashing " $ symbol).
- It's ready to use on the AjaXplorer part
- In your CMS, create an authentification mechanism (generally there is also a plugin system) that can be configured with the secret key.
- This mechanism must, at login time, include the plugins/auth.remote/glueCode.php file, the secret key being set as GLOBAL before the inclusion, as well as the $plugInAction variable, and other variable depending on the action (login, logout, addUser, etc).. See the glueCode file to check the implemented actions.
- This way, the glueCode file switches dynamically the session to an AjaXplorer session, logs in a user, then give back the hand to the CMS.
- Once logged in your CMS, you should be able to access AjaXplorer logged in as the same user.