Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.5 KB

File metadata and controls

33 lines (19 loc) · 1.5 KB

MCImageManager Symfony Authenticator

The MCImageManager Symfony Authenticator allows the MCImageManager plugin to authenticate against Symfony. Although this authenticator currently assumes you have sfGuard plugin installed for symfony, it can easily be changed to authenticate via some other symfony authentication mechanism.

Currently only symfony 1.4 is supported (not Symfony 2).

Installation

  1. Copy SymfonyAuthenticator.php to the authenticator directory of MCImageManager (this would typically be in ./imagemanager/classes/Authenticators/)

  2. Change the config file to use the SymfonyAuthenticator instead of the default SessionAuthenticator. To do this, in ./imagemanager/config.php change:

    $mcImageManagerConfig['authenticator'] = "SessionAuthenticator";
    $mcImageManagerConfig['authenticator.login_page'] = "login_session_auth.php";
    

    to

    $mcImageManagerConfig['authenticator'] = "SymfonyAuthenticator";
    $mcImageManagerConfig['authenticator.login_page'] = "/login";
    
  3. Optional, change the app, environment and debug level to use for authentication

    $mcImageManagerConfig['SymfonyAuthenticator.app']   = "frontend";
    $mcImageManagerConfig['SymfonyAuthenticator.env']   = "prod";
    $mcImageManagerConfig['SymfonyAuthenticator.debug'] = false;
    

Testing

Point your browser to my.host.name/js/tiny_mce/plugins/imagemanager/pages/im/index.html

NOTE: for testing purposes you might need to use

$mcImageManagerConfig['authenticator.login_page'] = "/frontend_dev.php/login";