[dokuwiki] Re: Solution for seamless integration with google openId

  • From: 郑捷凯 <zhengjiekai@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 20 Aug 2013 12:00:33 +0800

Thank you for your reply.  The problem was solved (quite ugly) by adding
auth_login() at the end of auth_setup() in inc/auth.php making the
auth_login() run automatically.  So far it seems to work, not sure how to
do it in a plugin.


2013/8/19 Andreas Gohr <andi@xxxxxxxxxxxxxx>

> Hi,
>
> > I'm trying to integrate google openId with dokuwiki.  I modified the
> > authplain plugin adding the openId validation in the constructor.  But I
> end
> > up with two auth system.  I have to login with google id first then login
> > dokuwiki again.
>
> You haven't given much detail here and don't show any code. Not sure
> if anyone can help you here.
>
> >  The original openId plugin
> > https://www.dokuwiki.org/plugin:openid is an action plugin.  Does it
> mean
> > this task is more suitable for an action plugin?
>
> Might be, but auth plugins aren't available for very long so it might
> be historical reasons.
>
> > In addition I want to have a seamless integration.  When gmail is on, no
> > login in dokuwiki is needed; otherwise it would automatically redirect to
> > the google login page.  Any suggestion how this could possibly be done?
>
> Check the code of this plugin, it does something similar for Saleforce
> authentication:
> https://github.com/cosmocode/dokuwiki-plugin-sfauth
>
> Andi
> --
> DokuWiki mailing list - more info at
> http://www.dokuwiki.org/mailinglist
>

Other related posts: