Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:wiki:installconfdokuwiki [2023/01/09 17:46]
adminjp [auth shibboleth]
docpublic:systemes:wiki:installconfdokuwiki [2023/03/22 09:23] (current)
adminjp [sidebar]
Line 79: Line 79:
 </code>  </code> 
  
-ensuite le plugin fonctionne +CE patch semble maintenant integré suite au PR . 
 + 
 +==== patch shib php8 ==== 
 + 
 +un autre patch "maison" a été fait pour supporter php 8 afin de ressoudre cette erreur 
 + 
 +<code> 
 +dokuwiki\Exception\FatalException: Declaration of auth_plugin_authshibboleth::trustExternal() must be compatible with dokuwiki\Extension\AuthPlugin::trustExternal($user, $pass, $sticky = false) 
 +</code> 
 + 
 +il suffit d'ajouter/declarer les parametres attendus comme indiqués dans authshibboleth/auth.php 
 + 
 +<code> 
 +  * @see DokuWiki_Auth_Plugin::trustExternal() 
 +     */ 
 +    //public function trustExternal() 
 +   public function trustExternal($user, $pass, $sticky = false) 
 +</code> 
 + 
 +==== patch multi auth-chained ==== 
 + 
 +autre besoin, gerer le multi-authentification => local (compte local docuwiki ) et federation ID shibboleth  
 + 
 +<code> 
 +[root@wiki authshibboleth]# diff action.php.bak action.php 
 +50c50,51 
 +<         if ('login' == $ACT && !array_key_exists('auth', $_SESSION[DOKU_COOKIE])) { 
 +--- 
 +> if ('login' == $ACT && !isset($_SESSION[DOKU_COOKIE]['auth']['user'])) { 
 +>  
 +</code> 
 +==== patch Logout ==== 
 + 
 +Dokuwiki redirige vers do=login, l'auth shibboleth se redéclenche immédiatement, pour contourner ce problème il faut patcher Logout.php pour retourner sur la page principal et pas sur la page de login 
 + 
 +<code> 
 +Action]# diff Logout.php.bak Logout.php 
 +47c47 
 +<         send_redirect(wl($ID, array('do' => 'login'), true, '&')); 
 +--- 
 +>         send_redirect(wl($ID, array(), true, '&')); 
 +</code> 
 + 
 +==== custom Login page ==== 
 + 
 +pour customiser le bouton login de la navbar en y faisant apparaitre l'auth Shib/fédé-ID, il faut editer le fichier lib/tpl/bootstrap3/tpl/navbar.php 
 + 
 +pour le formulaire de login, c'est dans inc/Ui/Login.php 
 + 
 + 
  
  
Line 111: Line 161:
 </code> </code>
  
 +==== bootstrap 3 themes ====
  
 +https://doc.ubuntu-fr.org/utilisateurs/fabux/emeht
 ==== reference 2013 ==== ==== reference 2013 ====
  
docpublic/systemes/wiki/installconfdokuwiki.1673286363.txt.gz · Last modified: 2023/01/09 17:46 by adminjp
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0