DokuWiki
Sign in to the DokuWiki wiki with Pocket ID.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
DokuWikiand add the callback URLhttps://dokuwiki.example.com/doku.php. - Click Create and copy the Client ID and the Client secret. Under Show more details, also copy the Authorization URL, the Token URL, the Userinfo URL and the Logout URL. The client secret is only shown once.
- On the client’s General tab, add
https://dokuwiki.example.com/doku.phpto Logout Callback URLs, then click Save. - On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure DokuWiki
Section titled “Configure DokuWiki”- In DokuWiki, open Admin → Extension Manager → Search and Install and install the oauth and oauthgeneric plugins.
- Open Admin → Configuration Settings.
- Make sure baseurl is set to your wiki’s URL, such as
https://dokuwiki.example.com, so the Redirect URI shown at the top of the oauth plugin settings matches the callback URL in Pocket ID. - Set authtype to
oauth. - In the oauth plugin settings, turn on register-on-auth so new users can sign in.
- In the oauthgeneric plugin settings, fill in the fields:
- key: the Client ID from Pocket ID.
- secret: the Client secret from Pocket ID.
- authurl: the Authorization URL from Pocket ID.
- tokenurl: the Token URL from Pocket ID.
- userurl: the Userinfo URL from Pocket ID.
- logouturl: the Logout URL from Pocket ID.
- authmethod:
Bearer Header. - scopes:
openid, profile, email, groups. - needs-state: on.
- json-user:
preferred_username. - json-name:
name. - json-mail:
email. - json-grps:
groups. - label:
Pocket ID.
- Save the settings. DokuWiki signs you out because the authentication backend changed, and the login page now shows the Pocket ID button.
To turn off password login, turn on singleService in the oauth plugin settings.