cosmocode / dokuwiki-plugin-oauth

Generic oAuth1 and oAuth2 plugin for DokuWiki
http://www.dokuwiki.org/plugin:oauth
30 stars 78 forks source link

Update to handle new Auth0 auth through OAuth. #71

Closed cgalo5758 closed 5 years ago

cgalo5758 commented 5 years ago

Question shared in the Auth0 forum: DokuWiki and Auth0 with OAuth plugin

OP:

I am using the OAuth Plugin for DokuWiki, and have filled in the necessary fields for it to function on DokuWiki such as client id, domain, and client secret. Checked more than twice. I am using the same application I am using for the wordpress plugin, but I am not really sure if that is what I am supposed to do. I am utterly clueless as to what to do or how to set up an Auth0 authentication for my dokuwiki.

Auth0 forum user "Abhishek_Hingnikar1":

500 Seems to be coming from your server internals, are there any server side logs you have access to? Looking at the plugin source https://github.com/cosmocode/dokuwiki-plugin-oauth/blob/master/classes/Auth0Adapter.php#L25 it seems that the plugin was last updated in 2016, it seems to me that the plugin might not be in sync with our latest features etc esp this line https://github.com/cosmocode/dokuwiki-plugin-oauth/blob/master/classes/Auth0Adapter.php#L25. As the plugin is requesting the username and email from Auth0 you’ll need to explicitely request username and email on top of OPENID. I recommend opening a bug with the repository to update the plugin.

vaivars commented 5 years ago

https://github.com/cosmocode/dokuwiki-plugin-oauth/pull/80

This PR should fix the issue.

If anyone needs to use it before its merged, just make the change locally after installing the plugin.