dokuwiki-plugin-oauth
dokuwiki-plugin-oauth copied to clipboard
plugin initialization error without users.auth.php file
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
Yes, I failed with that message, too.
I can confirm: I had the same problem.