[dokuwiki] Re: WP-Integration with MySQL-Auth-Plugin

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: DokuWiki Mailinglist <dokuwiki@xxxxxxxxxxxxx>
  • Date: Sat, 29 Jun 2013 09:15:57 +0200

> Instead of a regular 1:n or n:m wordpress has a generic table for meta-infos 
> and stores all assigned groups of one user inside a json-string.
>
> Write an own auth-plugin for Wordpress (or rewrite the existing one 
> http://thedeadone.net/download/getting-dokuwiki-to-use-wordpress-authentication/
>  ).

That's your best approach there. You could inherit from the MySQL auth
plugin, set all the needed SQL configs in the constructor instead of
reading them the config and overwrite the getUserInfo() method to
parse the JSON.

Andi

--
splitbrain.org
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: