WordPress
Configure any WordPress instance with Pocket ID OIDC
The following example variables are used, and should be replaced with your actual URLS.
- my-website.com (The url of your WordPress instance.)
- id.example.com (The url of your Pocket ID instance.)
We will be using the OpenID Connect Generic Client WordPress Plugin. Other plugins should work about the same.
Pocket ID Setup
- In Pocket-ID create a new OIDC Client, name it i.e.
WordPress. - Set the callback URL to:
https://my-website.com/wp-admin, or leave blank to autofill on first login. - (Optional) Upload a logo for your website or download the wordpress logo from Self-Hosted Dashboard Icons
- Copy the
Client ID,Client Secret,OIDC Discovery URLfor use in the next steps.
WordPress Setup
- Open your admin interface of your WordPress and navigate to Plugins > Add Plugin
- Search for
OpenID Connect Generic Clientfrom authorJonathan Daggerhart. Install and Activate that plugin - Navigate to Settings > OpenID Connect Client
- On the top you'll find a Quick Setup_**. Enter your
OIDC Discovery URLand click the Load Configuration button - After that, fill out the following fields:
- Login Type:
OpenID connect button on login form. Do NOT change this until you've successfully tested your new OIDC login! - Client ID: Paste the
Client IDfrom Pocket ID - Client Secret: Paste the
Client Secretfrom Pocket ID
- Login Type:
- Save your settings
- Open an InPrivate window and ensure OIDC login works
- (Optional) Change Login Type to
Auto Login - SSO
Troubleshooting
If you use the Kadence Security plugin, make sure you have 2FA disabled. This will cause the login process to redirect you back to your Pocket-ID instance and you won't be able to get into the WordPress admin page