Changeset 534

Show
Ignore:
Timestamp:
08/09/07 17:43:38 (1 year ago)
Author:
laurentj
Message:

improvement #229: support of persistant authentification in jAuth and auth plugin + new jCrypt class. p=Antoine Detante

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/jelix-lib.mn

    r525 r534  
    187187  jClasses.class.php 
    188188  jCmdUtils.class.php 
     189  jCrypt.class.php 
    189190  jDatatype.class.php 
    190191  jDateTime.class.php 
  • trunk/build/manifests/jelix-lib.mn

    r525 r534  
    187187  jClasses.class.php 
    188188  jCmdUtils.class.php 
     189  jCrypt.class.php 
    189190  jDatatype.class.php 
    190191  jDateTime.class.php 
  • trunk/lib/jelix-modules/jauth/controllers/login.classic.php

    r386 r534  
    44* @subpackage jauth 
    55* @author     Croes Gérald,  Bertrand Yan 
    6 * @contributor Laurent Jouanneau 
    7 * @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau 
     6* @contributor Laurent Jouanneau, Antoine Detante 
     7* @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau, 2007 Antoine Detante 
    88* Classe orginellement issue du framework Copix 2.3dev20050901. http://www.copix.org (CopixZone) 
    99* Une partie du code est sous Copyright 2001-2005 CopixTeam (licence LGPL) 
     
    3232        } 
    3333 
    34         if (!jAuth::login($this->param('login'), $this->param('password'))){ 
     34        if (!jAuth::login($this->param('login'), $this->param('password'), $this->param('rememberMe'))){ 
    3535            sleep (intval($conf['on_error_sleep'])); 
    3636            $url_return = jUrl::get($conf['after_logout'],array ('login'=>$this->param('login'), 'failed'=>1)); 
     
    6565        $rep->title =  jLocale::get ('auth.titlePage.login'); 
    6666        $rep->bodyTpl = 'jauth~index'; 
    67         $rep->body->assignZone ('MAIN', 'jauth~loginform', array ('login'=>$this->param('login'), 'failed'=>$this->param('failed'))); 
    68  
     67        $rep->body->assignZone ('MAIN', 'jauth~loginform', array ('login'=>$this->param('login'), 'failed'=>$this->param('failed'), 'showRememberMe'=>jAuth::isPersistant())); 
    6968        return $rep; 
    7069    } 
  • trunk/lib/jelix-modules/jauth/controllers/login.classic.php

    r386 r534  
    44* @subpackage jauth 
    55* @author     Croes Gérald,  Bertrand Yan 
    6 * @contributor Laurent Jouanneau 
    7 * @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau 
     6* @contributor Laurent Jouanneau, Antoine Detante 
     7* @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau, 2007 Antoine Detante 
    88* Classe orginellement issue du framework Copix 2.3dev20050901. http://www.copix.org (CopixZone) 
    99* Une partie du code est sous Copyright 2001-2005 CopixTeam (licence LGPL) 
     
    3232        } 
    3333 
    34         if (!jAuth::login($this->param('login'), $this->param('password'))){ 
     34        if (!jAuth::login($this->param('login'), $this->param('password'), $this->param('rememberMe'))){ 
    3535            sleep (intval($conf['on_error_sleep'])); 
    3636            $url_return = jUrl::get($conf['after_logout'],array ('login'=>$this->param('login'), 'failed'=>1)); 
     
    6565        $rep->title =  jLocale::get ('auth.titlePage.login'); 
    6666        $rep->bodyTpl = 'jauth~index'; 
    67         $rep->body->assignZone ('MAIN', 'jauth~loginform', array ('login'=>$this->param('login'), 'failed'=>$this->param('failed'))); 
    68  
     67        $rep->body->assignZone ('MAIN', 'jauth~loginform', array ('login'=>$this->param('login'), 'failed'=>$this->param('failed'), 'showRememberMe'=>jAuth::isPersistant())); 
    6968        return $rep; 
    7069    } 
  • trunk/lib/jelix-modules/jauth/locales/en_US/auth.ISO-8859-1.properties

    r339 r534  
    1414 
    1515lostPassword = Password lost ? 
     16 
     17rememberMe=Remember me 
  • trunk/lib/jelix-modules/jauth/locales/en_US/auth.ISO-8859-1.properties

    r339 r534  
    1414 
    1515lostPassword = Password lost ? 
     16 
     17rememberMe=Remember me 
  • trunk/lib/jelix-modules/jauth/locales/fr_FR/auth.ISO-8859-1.properties

    r339 r534  
    1313 
    1414lostPassword = Mot de passe perdu ? 
     15 
     16rememberMe=Se souvenir de moi 
  • trunk/lib/jelix-modules/jauth/locales/fr_FR/auth.ISO-8859-1.properties

    r339 r534  
    1313 
    1414lostPassword = Mot de passe perdu ? 
     15 
     16rememberMe=Se souvenir de moi 
  • trunk/lib/jelix-modules/jauth/locales/fr_FR/auth.UTF-8.properties

    r339 r534  
    1414 
    1515lostPassword = Mot de passe perdu ? 
     16 
     17rememberMe=Se souvenir de moi 
  • trunk/lib/jelix-modules/jauth/locales/fr_FR/auth.UTF-8.properties

    r339 r534  
    1414 
    1515lostPassword = Mot de passe perdu ? 
     16 
     17rememberMe=Se souvenir de moi 
  • trunk/lib/jelix-modules/jauth/zones/loginform.zone.php

    r339 r534  
    55* @subpackage jauth 
    66* @author     Laurent Jouanneau 
    7 * @contributor  
    8 * @copyright  2005-2006 Laurent Jouanneau 
     7* @contributor Antoine Detante 
     8* @copyright  2005-2006 Laurent Jouanneau, 2007 Antoine Detante 
    99* @link       http://www.jelix.org 
    1010* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
     
    2121        $this->_tpl->assign ('user', jAuth::getUserSession()); 
    2222        $this->_tpl->assign ('isLogged', jAuth::isConnected()); 
    23         $this->_tpl->assign ('showRememberMe', false); 
     23        $this->_tpl->assign ('showRememberMe', $this->getParam('showRememberMe')); 
    2424    } 
    2525} 
  • trunk/lib/jelix-modules/jauth/zones/loginform.zone.php

    r339 r534  
    55* @subpackage jauth 
    66* @author     Laurent Jouanneau 
    7 * @contributor  
    8 * @copyright  2005-2006 Laurent Jouanneau 
     7* @contributor Antoine Detante 
     8* @copyright  2005-2006 Laurent Jouanneau, 2007 Antoine Detante 
    99* @link       http://www.jelix.org 
    1010* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
     
    2121        $this->_tpl->assign ('user', jAuth::getUserSession()); 
    2222        $this->_tpl->assign ('isLogged', jAuth::isConnected()); 
    23         $this->_tpl->assign ('showRememberMe', false); 
     23        $this->_tpl->assign ('showRememberMe', $this->getParam('showRememberMe')); 
    2424    } 
    2525} 
  • trunk/lib/jelix/auth/jAuth.class.php

    r520 r534  
    44* @subpackage auth 
    55* @author     Laurent Jouanneau 
    6 * @contributor Frédéric Guillot 
    7 * @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot 
     6* @contributor Frédéric Guillot, Antoine Detante 
     7* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 
    88* Classe orginellement issue d'une branche experimentale du 
    99* framework Copix 2.3dev. http://www.copix.org (jAuth) 
     
    282282     * @param string $login the login of the user 
    283283     * @param string $password the password to test (not encrypted) 
     284     * @param boolean $persistant (optional) the session must be persistant 
    284285     * @return boolean true if authentification is ok 
    285286     */ 
    286     public static function login($login, $password){ 
     287    public static function login($login, $password, $persistant=false){ 
    287288 
    288289        $dr = self::_getDriver(); 
     
    300301            $_SESSION[$config['session_name']] = $user; 
    301302            jEvent::notify ('AuthLogin', array('login'=>$login)); 
     303             
     304            // Add a cookie for session persistance, if enabled 
     305            if($persistant && isset($config['persistant_enable']) && $config['persistant_enable']) { 
     306                if(!isset($config['persistant_crypt_key']) || !isset($config['persistant_cookie_name'])){ 
     307                    throw new jException('jelix~auth.error.persistant.incorrectconfig','persistant_cookie_name, persistant_crypt_key'); 
     308                } 
     309                $cookieDuration=24*3600; 
     310                if(isset($config['persistant_duration'])) 
     311                    $cookieDuration=$config['persistant_duration']*86400; 
     312                $cookieDuration+=time(); 
     313                $encryptedPassword=jCrypt::encrypt($password,$config['persistant_crypt_key']); 
     314                setcookie($config['persistant_cookie_name'].'[login]',$login,$cookieDuration); 
     315                setcookie($config['persistant_cookie_name'].'[passwd]',$encryptedPassword,$cookieDuration); 
     316            } 
    302317            return true; 
    303318        }else 
    304319            return false; 
    305320    } 
     321     
     322    /** 
     323     * Check if persistant session is enabled in config 
     324     * @return boolean true if persistant session in enabled 
     325     */ 
     326    public static function isPersistant(){ 
     327        $config = self::_getConfig(); 
     328        if(!isset($config['persistant_enable'])) 
     329            return false; 
     330        else 
     331            return $config['persistant_enable']; 
     332    } 
    306333 
    307334    /** 
     
    314341        $_SESSION[$config['session_name']] = new jDummyAuthUser(); 
    315342        jAcl::clearCache(); 
     343        if(isset($config['persistant_enable']) && $config['persistant_enable']){ 
     344            if(!isset($config['persistant_cookie_name'])) 
     345                throw new jException('jelix~auth.error.persistant.incorrectconfig','persistant_cookie_name, persistant_crypt_key'); 
     346            setcookie($config['persistant_cookie_name'].'[login]'); 
     347            setcookie($config['persistant_cookie_name'].'[passwd]'); 
     348        } 
    316349    } 
    317350 
  • trunk/lib/jelix/auth/jAuth.class.php

    r520 r534  
    44* @subpackage auth 
    55* @author     Laurent Jouanneau 
    6 * @contributor Frédéric Guillot 
    7 * @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot 
     6* @contributor Frédéric Guillot, Antoine Detante 
     7* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 
    88* Classe orginellement issue d'une branche experimentale du 
    99* framework Copix 2.3dev. http://www.copix.org (jAuth) 
     
    282282     * @param string $login the login of the user 
    283283     * @param string $password the password to test (not encrypted) 
     284     * @param boolean $persistant (optional) the session must be persistant 
    284285     * @return boolean true if authentification is ok 
    285286     */ 
    286     public static function login($login, $password){ 
     287    public static function login($login, $password, $persistant=false){ 
    287288 
    288289        $dr = self::_getDriver(); 
     
    300301            $_SESSION[$config['session_name']] = $user; 
    301302            jEvent::notify ('AuthLogin', array('login'=>$login)); 
     303             
     304            // Add a cookie for session persistance, if enabled 
     305            if($persistant && isset($config['persistant_enable']) && $config['persistant_enable']) { 
     306                if(!isset($config['persistant_crypt_key']) || !isset($config['persistant_cookie_name'])){ 
     307                    throw new jException('jelix~auth.error.persistant.incorrectconfig','persistant_cookie_name, persistant_crypt_key'); 
     308                } 
     309                $cookieDuration=24*3600; 
     310                if(isset($config['persistant_duration'])) 
     311                    $cookieDuration=$config['persistant_duration']*86400; 
     312                $cookieDuration+=time(); 
     313                $encryptedPassword=jCrypt::encrypt($password,$config['persistant_crypt_key']); 
     314                setcookie($config['persistant_cookie_name'].'[login]',$login,$cookieDuration); 
     315                setcookie($config['persistant_cookie_name'].'[passwd]',$encryptedPassword,$cookieDuration); 
     316            } 
    302317            return true; 
    303318        }else 
    304319            return false; 
    305320    } 
     321     
     322    /** 
     323     * Check if persistant session is enabled in config 
     324     * @return boolean true if persistant session in enabled 
     325     */ 
     326    public static function isPersistant(){ 
     327        $config = self::_getConfig(); 
     328        if(!isset($config['persistant_enable'])) 
     329            return false; 
     330        else 
     331            return $config['persistant_enable']; 
     332    } 
    306333 
    307334    /** 
     
    314341        $_SESSION[$config['session_name']] = new jDummyAuthUser(); 
    315342        jAcl::clearCache(); 
     343        if(isset($config['persistant_enable']) && $config['persistant_enable']){ 
     344            if(!isset($config['persistant_cookie_name'])) 
     345                throw new jException('jelix~auth.error.persistant.incorrectconfig','persistant_cookie_name, persistant_crypt_key'); 
     346            setcookie($config['persistant_cookie_name'].'[login]'); 
     347            setcookie($config['persistant_cookie_name'].'[passwd]'); 
     348        } 
    316349    } 
    317350 
  • trunk/lib/jelix/core-modules/jelix/locales/en_EN/auth.ISO-8859-1.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_EN/auth.ISO-8859-1.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_EN/auth.UTF-8.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_EN/auth.UTF-8.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_US/auth.ISO-8859-1.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_US/auth.ISO-8859-1.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_US/auth.UTF-8.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/en_US/auth.UTF-8.properties

    r475 r534  
    33error.lds.request.not.send = (605)Error while trying to send request to LDS server 
    44error.lds.unreachable.server = (606)Impossible to connect to LDS server 
     5error.key.tooshort = (607)Key is too short (at least %s characters) 
     6error.key.empty = (608)Key is empty 
     7error.persistant.incorrectconfig = (609)Following parameters must be set in the configuration: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/fr_FR/auth.ISO-8859-1.properties

    r475 r534  
    22error.driver.notfound = (602)Driver d'authentification %s non trouv�rror.lds.request.not.send = (605)Impossible d'envoyer la requ� sur le serveur LDS 
    33error.lds.unreachable.server = (606)Impossible de contacter le serveur LDS 
     4error.key.tooshort = (607)La cl�e cryptage est trop courte (au moins %s caract�s) 
     5error.key.empty = (608)La cl�e cryptage est vide 
     6error.persistant.incorrectconfig = (609)Les param�es de configuration suivants doivent etre renseign�: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/fr_FR/auth.ISO-8859-1.properties

    r475 r534  
    22error.driver.notfound = (602)Driver d'authentification %s non trouv�rror.lds.request.not.send = (605)Impossible d'envoyer la requ� sur le serveur LDS 
    33error.lds.unreachable.server = (606)Impossible de contacter le serveur LDS 
     4error.key.tooshort = (607)La cl�e cryptage est trop courte (au moins %s caract�s) 
     5error.key.empty = (608)La cl�e cryptage est vide 
     6error.persistant.incorrectconfig = (609)Les param�es de configuration suivants doivent etre renseign�: %s 
  • trunk/lib/jelix/core-modules/jelix/locales/fr_FR/auth.UTF-8.properties

    r475 r534  
    33error.lds.request.not.send = (605)Impossible d'envoyer la requête sur le serveur LDS 
    44error.lds.unreachable.server = (606)Impossible de contacter le serveur LDS 
     5error.key.tooshort = (607)La clé de cryptage est trop courte (au moins %s caractères) 
     6error.key.empty = (608)La clé de cryptage est vide 
     7error.persistant.incorrectconfig = (609)Les paramètres de configuration suivants doivent être renseignés : %s 
  • trunk/lib/jelix/core-modules/jelix/locales/fr_FR/auth.UTF-8.properties

    r475 r534  
    33error.lds.request.not.send = (605)Impossible d'envoyer la requête sur le serveur LDS 
    44error.lds.unreachable.server = (606)Impossible de contacter le serveur LDS 
     5error.key.tooshort = (607)La clé de cryptage est trop courte (au moins %s caractères) 
     6error.key.empty = (608)La clé de cryptage est vide 
     7error.persistant.incorrectconfig = (609)Les paramètres de configuration suivants doivent être renseignés : %s 
  • trunk/lib/jelix/CREDITS

    r508 r534  
    1 Crédits 
     1Credits 
    22======= 
    33 
    4 Développeurs 
     4Core team developers 
     5-------------------- 
     6 
     7Laurent Jouanneau (laurentj): 
     8 - Conceptor and main developer of Jelix 
     9 
     10Loic Mathaud (bballizlife): 
     11 - testor, many bug fixes and many patches on jelix 
     12 - jtpl contributor: standalone edition of jTpl, tag for comments, {for}, stripslashes modifier 
     13 - sqlite driver for jdb 
     14 - operators in jDao 
     15 - features to run Jelix application from a command line 
     16 - implementation of jResponseXML, jResponseRss20 
     17 - documentation 
     18 - many improvements (jClasses::inc(), jIniFile, jAppManager, jelix-scripts etc ) 
     19 
     20Contributors 
    521------------ 
     22By alphabetic order on the name 
    623 
    7 Laurent Jouanneau (laurentj) : 
    8  - Concepteur et développeur principal de Jelix 
     24Vincent Bonnard 
     25 - bug fix in jXmlRpc.class.php (#190) 
     26  
     27Cedric 
     28 - bug fix in jFile::read 
    929 
    10 Loic Mathaud (bballizlife) : 
    11  - testeur, nombreuses corrections de bugs et nombreux patchs dans jelix 
    12  - contributions jTpl : version standalone du moteur de template, commentaires, {for}, modifier stripslashes 
    13  - driver sqlite pour jDb 
    14  - daos : opérateurs supplementaires 
    15  - adaptation du framework pour la réalisation d'applications fonctionnant en ligne de commande 
    16  - implementation de jResponseXML, jResponseRss20 
    17  - corrections orthographiques dans la documentation 
    18  - Diverses améliorations (jClasses::inc(), jIniFile, jAppManager, dans jelix-scripts etc. ) 
     30Antoine Detante 
     31 - support of persistant authentification in jAuth and auth plugin (#229) 
    1932 
    20 Contributeurs 
    21 ------------- 
     33Mickaël Fradin (aka mike) 
     34 - improvements in the jtpl plugin: formcontrols (#223) 
    2235 
    23 Yannick Le Guédart (aka Torgan) 
    24  - driver auth jAuthDriverClass 
    25  - plugin jtpl date_format 
    26  - Divers bug fix et petites améliorations 
    27  - Contributions sur jResponseRss et jResponseAtom 
    28  - Driver Intuition pour jDb 
     36Olivier Gambier (aka d-m-p) 
     37 - code reviewer, bug fixes 
     38 
     39Gildas Givaja (aka Giviz) 
     40 - testor, bug fixes 
     41 - bug fix in jXmlRpc.class.php (#192) 
     42 
     43Frédéric Guillot (aka fg) 
     44 - patch for multiple authentification in a same session (#207) 
     45 
     46Julien Issler 
     47 - updated JSON class (#231) 
    2948 
    3049Nicolas Jeudy (aka njeudy) 
    31  - driver auth jAuthDriverLDS (pour les annuaires ldap LDS) 
     50 - auth driver: jAuthDriverLDS (pour les annuaires ldap LDS) 
    3251 - jResponseCss 
    3352 
     53Nicolas Lassalle 
     54 - bug fix in jResponseBinary (#188) 
     55  
     56Yannick Le Guédart (aka Torgan) 
     57 - auth driver: jAuthDriverClass 
     58 - jtpl plugin: date_format 
     59 - some bug fixes and little improvements 
     60 - Contribution on jResponseRss and jResponseAtom 
     61 - jdb driver for Intuition 
     62 
    3463Aubanel MONNIER 
    35  - reponse jResponseLatexToPdf et les plugins de templates associés 
    36  - patch pour les ancres dans jResponseRedirect 
     64 - jResponseLatexToPdf and jtpl plugins for latex 
     65 - patch for anchors support in jResponseRedirect 
     66 
     67Laurent Raufaste (aka analogue) 
     68 - patch on postgresql driver (#123) 
    3769 
    3870M. Thiriot (aka Doubleface) 
    39  - testeu
    40  - bug fixs sur le support de PDO dans jDb 
     71 - testo
     72 - bug fixes on PDO support in jDb 
    4173 
    4274Yann 
    43  - Petite amélioration sur jResponseHtml (description et keywords) 
     75 - improvements in jResponseHtml (description and keywords) 
    4476 
    45 Laurent Raufaste (aka analogue) 
    46  - patch sur la connexion postgresql (#123) 
    4777 
    48 Frédéric Guillot (aka fg) 
    49  - patch pour authentification multiple dans une même session (#207) 
     78Thanks for all users, especially those who reported bugs. :-) 
    5079 
    51 Cedric 
    52  - patch correctif sur jFile::read 
    53  
    54 Olivier Gambier (aka d-m-p) 
    55  - review de code, corrections de bugs 
    56  
    57 Gildas Givaja (aka Giviz) 
    58  - testeur, corrections de bugs 
    59  - correction dans jXmlRpc.class.php (#192) 
    60  
    61 Nicolas Lassalle 
    62  - correction d'un bug (#188) 
    63   
    64 Vincent Bonnard 
    65  - coquille dans jXmlRpc.class.php (#180) 
    66   
    67 Mickaël Fradin (aka mike) 
    68  - amélioration sur le plugin de template formcontrols (#223) 
    69  
    70 Julien Issler 
    71  - update JSON class (#231) 
    72  
    73 Contributeurs involontaires ;-) 
    74 ------------------------------- 
     80Thanks for their works: 
     81----------------------- 
    7582 
    7683Brent R. Matzelle 
    77     pour sa classe PHPMailer (jMailer dans Jelix) 
     84    for his PHPMailer class (jMailer in Jelix) 
    7885Chris Ryan 
    79     pour sa classe SMTP (jSmtp dans Jelix) 
     86    for his SMTP classe (jSmtp in Jelix) 
    8087Copix Team 
    81     en particulier Gerald Croes, co-auteur des parties du code qui sont issues du proje
    82     Copix version 2.3dev20050901 et qui sont sous copyright 2001-2005 Copix Team 
     88    in particulary Gerald Croes, co-author of source parts from Copix projec
     89    (version 2.3dev20050901), under copyright 2001-2005 Copix Team 
    8390    (http://www.copix.org) 
    8491 
    85  
    86 (mise à jour à svn-405) 
     92(updated svn-533) 
  • trunk/lib/jelix/CREDITS

    r508 r534  
    1 Crédits 
     1Credits 
    22======= 
    33 
    4 Développeurs 
     4Core team developers 
     5-------------------- 
     6 
     7Laurent Jouanneau (laurentj): 
     8 - Conceptor and main developer of Jelix 
     9 
     10Loic Mathaud (bballizlife): 
     11 - testor, many bug fixes and many patches on jelix 
     12 - jtpl contributor: standalone edition of jTpl, tag for comments, {for}, stripslashes modifier 
     13 - sqlite driver for jdb 
     14 - operators in jDao 
     15 - features to run Jelix application from a command line 
     16 - implementation of jResponseXML, jResponseRss20 
     17 - documentation 
     18 - many improvements (jClasses::inc(), jIniFile, jAppManager, jelix-scripts etc ) 
     19 
     20Contributors 
    521------------ 
     22By alphabetic order on the name 
    623 
    7 Laurent Jouanneau (laurentj) : 
    8  - Concepteur et développeur principal de Jelix 
     24Vincent Bonnard 
     25 - bug fix in jXmlRpc.class.php (#190) 
     26  
     27Cedric 
     28 - bug fix in jFile::read 
    929 
    10 Loic Mathaud (bballizlife) : 
    11  - testeur, nombreuses corrections de bugs et nombreux patchs dans jelix 
    12  - contributions jTpl : version standalone du moteur de template, commentaires, {for}, modifier stripslashes 
    13  - driver sqlite pour jDb 
    14  - daos : opérateurs supplementaires 
    15  - adaptation du framework pour la réalisation d'applications fonctionnant en ligne de commande 
    16  - implementation de jResponseXML, jResponseRss20 
    17  - corrections orthographiques dans la documentation 
    18  - Diverses améliorations (jClasses::inc(), jIniFile, jAppManager, dans jelix-scripts etc. ) 
     30Antoine Detante 
     31 - support of persistant authentification in jAuth and auth plugin (#229) 
    1932 
    20 Contributeurs 
    21 ------------- 
     33Mickaël Fradin (aka mike) 
     34 - improvements in the jtpl plugin: formcontrols (#223) 
    2235 
    23 Yannick Le Guédart (aka Torgan) 
    24  - driver auth jAuthDriverClass 
    25  - plugin jtpl date_format 
    26  - Divers bug fix et petites améliorations 
    27  - Contributions sur jResponseRss et jResponseAtom 
    28  - Driver Intuition pour jDb 
     36Olivier Gambier (aka d-m-p) 
     37 - code reviewer, bug fixes 
     38 
     39Gildas Givaja (aka Giviz) 
     40 - testor, bug fixes 
     41 - bug fix in jXmlRpc.class.php (#192) 
     42 
     43Frédéric Guillot (aka fg) 
     44 - patch for multiple authentification in a same session (#207) 
     45 
     46Julien Issler 
     47 - updated JSON class (#231) 
    2948 
    3049Nicolas Jeudy (aka njeudy) 
    31  - driver auth jAuthDriverLDS (pour les annuaires ldap LDS) 
     50 - auth driver: jAuthDriverLDS (pour les annuaires ldap LDS) 
    3251 - jResponseCss 
    3352 
     53Nicolas Lassalle 
     54 - bug fix in jResponseBinary (#188) 
     55  
     56Yannick Le Guédart (aka Torgan) 
     57 - auth driver: jAuthDriverClass 
     58 - jtpl plugin: date_format 
     59 - some bug fixes and little improvements 
     60 - Contribution on jResponseRss and jResponseAtom 
     61 - jdb driver for Intuition 
     62 
    3463Aubanel MONNIER 
    35  - reponse jResponseLatexToPdf et les plugins de templates associés 
    36  - patch pour les ancres dans jResponseRedirect 
     64 - jResponseLatexToPdf and jtpl plugins for latex 
     65 - patch for anchors support in jResponseRedirect 
     66 
     67Laurent Raufaste (aka analogue) 
     68 - patch on postgresql driver (#123) 
    3769 
    3870M. Thiriot (aka Doubleface) 
    39  - testeu
    40  - bug fixs sur le support de PDO dans jDb 
     71 - testo
     72 - bug fixes on PDO support in jDb 
    4173 
    4274Yann 
    43  - Petite amélioration sur jResponseHtml (description et keywords) 
     75 - improvements in jResponseHtml (description and keywords) 
    4476 
    45 Laurent Raufaste (aka analogue) 
    46  - patch sur la connexion postgresql (#123) 
    4777 
    48 Frédéric Guillot (aka fg) 
    49  - patch pour authentification multiple dans une même session (#207) 
     78Thanks for all users, especially those who reported bugs. :-) 
    5079 
    51 Cedric 
    52  - patch correctif sur jFile::read 
    53  
    54 Olivier Gambier (aka d-m-p) 
    55  - review de code, corrections de bugs 
    56  
    57 Gildas Givaja (aka Giviz) 
    58  - testeur, corrections de bugs 
    59  - correction dans jXmlRpc.class.php (#192) 
    60  
    61 Nicolas Lassalle 
    62  - correction d'un bug (#188) 
    63   
    64 Vincent Bonnard 
    65  - coquille dans jXmlRpc.class.php (#180) 
    66   
    67 Mickaël Fradin (aka mike) 
    68  - amélioration sur le plugin de template formcontrols (#223) 
    69  
    70 Julien Issler 
    71  - update JSON class (#231) 
    72  
    73 Contributeurs involontaires ;-) 
    74 ------------------------------- 
     80Thanks for their works: 
     81----------------------- 
    7582 
    7683Brent R. Matzelle 
    77     pour sa classe PHPMailer (jMailer dans Jelix) 
     84    for his PHPMailer class (jMailer in Jelix) 
    7885Chris Ryan 
    79     pour sa classe SMTP (jSmtp dans Jelix) 
     86    for his SMTP classe (jSmtp in Jelix) 
    8087Copix Team 
    81     en particulier Gerald Croes, co-auteur des parties du code qui sont issues du proje
    82     Copix version 2.3dev20050901 et qui sont sous copyright 2001-2005 Copix Team 
     88    in particulary Gerald Croes, co-author of source parts from Copix projec
     89    (version 2.3dev20050901), under copyright 2001-2005 Copix Team 
    8390    (http://www.copix.org) 
    8491 
    85  
    86 (mise à jour à svn-405) 
     92(updated svn-533) 
  • trunk/lib/jelix/plugins/coord/auth/auth.coord.ini.php.dist

    r492 r534  
    5252after_logout = "" 
    5353 
     54;============ Paramètres pour la persistance de la session 
     55 
     56; PARAMETRES OBLIGATOIRES 
     57 
     58; active la persistance de la session 
     59persistant_enable=on 
     60 
     61; clé utilisée pour le cryptage du password dans le cookie 
     62persistant_crypt_key=exempledecledecryptage 
     63 
     64; nom du cookie pour la persistance de la session 
     65persistant_cookie_name=jelixAuthentificationCookie 
     66 
     67; PARAMETRES OPTIONNELS 
     68 
     69; durée de validité du cookie (en nombre de jour) : si non renseigné la persistance est valable pendant 24h. 
     70persistant_duration=3 
     71 
     72 
    5473;=========== Paramètres pour les drivers 
    5574 
  • trunk/lib/jelix/plugins/coord/auth/auth.coord.ini.php.dist

    r492 r534  
    5252after_logout = "" 
    5353 
     54;============ Paramètres pour la persistance de la session 
     55 
     56; PARAMETRES OBLIGATOIRES 
     57 
     58; active la persistance de la session 
     59persistant_enable=on 
     60 
     61; clé utilisée pour le cryptage du password dans le cookie 
     62persistant_crypt_key=exempledecledecryptage 
     63 
     64; nom du cookie pour la persistance de la session 
     65persistant_cookie_name=jelixAuthentificationCookie 
     66 
     67; PARAMETRES OPTIONNELS 
     68 
     69; durée de validité du cookie (en nombre de jour) : si non renseigné la persistance est valable pendant 24h. 
     70persistant_duration=3 
     71 
     72 
    5473;=========== Paramètres pour les drivers 
    5574 
  • trunk/lib/jelix/plugins/coord/auth/auth.coord.php

    r492 r534  
    44* @subpackage coord_plugin 
    55* @author     Croes Gérald 
    6 * @contributor  Laurent Jouanneau, Frédéric Guillot 
    7 * @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau, 2007 Frédéric Guillot 
     6* @contributor  Laurent Jouanneau, Frédéric Guillot, Antoine Detante 
     7* @copyright  2001-2005 CopixTeam, 2005-2006 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 
    88* Une partie du code est issue d'une version experimentale de la classe 
    99* PluginAuth issue du framework Copix 2.3dev20050901. 
     
    4343        $badip = false; 
    4444        $selector = null; 
    45  
     45        // Check if auth cookie exist and user isn't logged on 
     46        if (isset($this->config['persistant_enable']) && $this->config['persistant_enable'] && !jAuth::isConnected()){ 
     47            if(isset($this->config['persistant_cookie_name']) && isset($this->config['persistant_crypt_key'])){ 
     48                $cookieName=$this->config['persistant_cookie_name']; 
     49                if(isset($_COOKIE[$cookieName]['login']) && isset($_COOKIE[$cookieName]['passwd']) && strlen($_COOKIE[$cookieName]['passwd'])>0){ 
     50                    $login = $_COOKIE[$cookieName]['login']; 
     51                    $encryptedPassword=$_COOKIE[$cookieName]['passwd']; 
     52                    jAuth::login($login,jCrypt::decrypt($encryptedPassword,$this->config['persistant_crypt_key'])); 
     53                } 
     54            } 
     55            else{ 
     56                throw new jException('jelix~auth.error.persistant.incorrectconfig','persistant_cookie_name, persistant_crypt_key'); 
     57            } 
     58        } 
    4659        //Do we check the ip ? 
    4760        if ($this->config['secure_with_ip']){ 
  • trunk/lib/jelix/plugins/coord/auth/auth.coord.php

    r492