gnu-social/plugins/ReverseUsernameAuthentication
Diogo Cordeiro 8c0601816f [CORE] Move core plugins to a new modules directory
For reference (raised by rozzin in IRC):

* http://foldoc.org/module
* http://foldoc.org/library
* http://foldoc.org/plugin

As noted by XRevan86, modules are not necessarily non-essential.
As we will keep the modules directory in GS root [therefore, near to
plugins/], it is evidenced the difference between both.

This is a simple yet fundamental structural change. It doesn't change
functionality but makes clearer the way we understand GNU social's
internals.
2019-08-22 03:13:58 +01:00
..
locale [CORE] Move core plugins to a new modules directory 2019-08-22 03:13:58 +01:00
README Improve description of what the provide_name parameter means 2010-02-24 22:29:46 -05:00
ReverseUsernameAuthenticationPlugin.php [VersionBump] 1.19.0, fairly late 2019-06-07 15:02:08 +01: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*: This is a identifier designated to the connection.
    It's how StatusNet will refer to the authentication source.
    For the most part, any name can be used, so long as each authentication source has a different identifier.
    In most cases there will be only one authentication source used.
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
));