Skip to content
v2.18.0GitHub

WordPress

Sign in to any WordPress site with Pocket ID.

Replace my-website.com with the URL of your WordPress instance and id.example.com with the URL of your Pocket ID instance.

This guide uses the OpenID Connect Generic Client WordPress Plugin. Other plugins should work about the same.

  1. In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
  2. Enter a name such as WordPress and add the callback URL https://my-website.com/wp-admin.
  3. Click Create and copy the Client ID, the Client secret and the OIDC Discovery URL. The client secret is only shown once.
  4. On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
  1. Open the WordPress admin interface and go to Plugins → Add Plugin.
  2. Search for OpenID Connect Generic Client by Jonathan Daggerhart, then click Install and Activate.
  3. Go to Settings → OpenID Connect Client.
  4. At the top, you’ll find a Quick Setup. Enter the OIDC Discovery URL from Pocket ID and click Load Configuration.
  5. 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: the Client ID from Pocket ID
    • Client Secret: the Client secret from Pocket ID
  6. Save your settings.
  7. Open a private browser window and make sure the OIDC login works.
  8. (Optional) Change Login Type to Auto Login - SSO.

If you use the Kadence Security plugin, make sure 2FA is disabled. Otherwise the login process redirects you back to your Pocket ID instance and you can’t get into the WordPress admin page.