MCImageManager:Configuration/authenticator
From Moxiecode Documentation Wiki
Contents |
Option: authenticator
This option enables you to specify a authenticator to be used. There are three authenticators build in to the core package. These are BaseAuthenicator, SessionAuthenicator and IPAuthenciator you can also use external plugins as Authenticators. You can also combine multiple authenticators by separating them with + or |. The + sign means that all authenticators needs to return true the | sign means that only one of them needs to be true. They are like AND and OR operators, these signs can't currently be mixed.
If a user couldn't be verified by any of the configured authenticators it will redirect the user to the specified login page check the authenticator.login_page config option for details.
Build in authenticators
- SessionAuthenticator
- This is the most common Authenticator class it will check a specific session variable if it's set to true.
- IPAuthenticator
- This one will check the remote users IP number against a list of valid IP numbers configured.
- ASPNETAuthenticator
- This is a .NET specific Authenticator that will use the build in .NET Forms Authentication logic.
- ExternalAuthenticator
- This makes it possible to authenticate a user agains a separate domain or language like asp or jsp.
- BaseAuthenticator
- This is a PHP basic authenticator this will just pass anyone through.
The PHP version has also some plugin authenticators for various CMS systems such as Drupal, Joomla, Wordpress.
Example of usage in the config.php file
$mcImageManagerConfig['authenticator'] = "SessionAuthenticator";
Advanced example of usage in the config.php file
$mcImageManagerConfig['authenticator'] = "SessionAuthenticator+IPAuthenticator";
Example of usage in the Web.Config file
<add key="authenticator" value="SessionAuthenticator" />
Advanced example of usage in the Web.Config file
<add key="authenticator" value="SessionAuthenticator+IPAuthenticator" />
