gnu-social/plugins/ReverseUsernameAuthentication
Craig Andrews 9e2e0605ed Move Authorization and Authentication plugin structures into core, instead of as plugins.
This move makes sense as you can addPlugin('Authentication') for example - these are abstract classes designed to be implemented, not used directly.
2010-01-05 13:56:22 -05:00
..
README Added a User_username table that links the external username with a StatusNet user_id 2009-11-12 20:12:36 -05:00
ReverseUsernameAuthenticationPlugin.php Move Authorization and Authentication plugin structures into core, instead of as plugins. 2010-01-05 13:56:22 -05:00

The Reverse Username Authentication plugin allows for StatusNet to handle authentication by checking if the provided password is the same as the reverse of the username.

THIS PLUGIN IS FOR TESTING PURPOSES ONLY

Installation
============
add "addPlugin('reverseUsernameAuthentication', array('setting'=>'value', 'setting2'=>'value2', ...);" to the bottom of your config.php

Settings
========
provider_name*: a unique name for this authentication provider.
password_changeable*: must be set to false. This plugin does not support changing passwords.
authoritative (false): Set to true if this plugin's responses are authoritative (meaning if this fails, do check any other plugins or the internal password database).
autoregistration (false): Set to true if users should be automatically created when they attempt to login.

* required
default values are in (parenthesis)

Example
=======
addPlugin('reverseUsernameAuthentication', array(
    'provider_name'=>'Example',
    'password_changeable'=>false,
    'authoritative'=>true,
    'autoregistration'=>true
));