Skip to content

mamady/MCImageManager-Symfony-Authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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";

About

This is an authenticator for the MoxieCode MCImageManager plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages