dokuwiki-plugin-oauth icon indicating copy to clipboard operation
dokuwiki-plugin-oauth copied to clipboard

plugin initialization error without users.auth.php file

Open glensc opened this issue 2 years ago • 2 comments

seems the oauth plugin extends authplain and requires conf/users.auth.php file to be present otherwise it ends up with cryptic message "User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin." and no details or errors anywhere.

it's because $auth->success check:

  • https://github.com/dokuwiki/dokuwiki/blob/91a25860ebdf15b20aa33b98d798cd0c04851206/inc/auth.php#L57-L63

which gets set to false in case the file is missing:

  • https://github.com/dokuwiki/dokuwiki/blob/91a25860ebdf15b20aa33b98d798cd0c04851206/lib/plugins/authplain/auth.php#L38-L39

and nothing resets it in the construct:

  • https://github.com/cosmocode/dokuwiki-plugin-oauth/blob/05d29310ce98af896825bca44d3cab16d9aab92f/auth.php#L24-L30

glensc avatar Apr 10 '23 07:04 glensc

Yes, I failed with that message, too.

fjf2002 avatar Jul 17 '23 14:07 fjf2002

I can confirm: I had the same problem.

systemofapwne avatar Jul 20 '23 22:07 systemofapwne