Skip to main content


What is Wordpress



WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes


There are many different plugins for Wordpress that allow you to setup SSO using different authentication methods. The plugin that is explained in this tutorial is "OpenID Connect Generic" version 3.8.5 by daggerhart. This plugin uses OpenID/OAUTH2 and is free without paywalls or subscriptions at the time of writing this. The plugin is available for free in the Wordpress Plugin gallery.


The following placeholders will be used:

  • is the FQDN of Wordpress.
  • is the FQDN of authentik.

Step 1 - authentik

In authentik, under Providers, create an OAuth2/OpenID Provider with these settings:


Only settings that have been modified from default have been listed.

Protocol Settings

  • Name: Wordpress
  • Client type: Confidential
  • Client ID: Copy and Save this for Later
  • Client Secret: Copy and Save this for later
  • Redirect URIs/Origins:

Step 2 - Wordpress


Assumption is being made that you have successfully downloaded and activated the required plugin "OpenID Connect Generic" by daggerhart

In Wordpress, under Settings, Select OpenID Connect Client


Only settings that have been modified from default have been listed.

  • Login Type: OpenID Connect Button on Login (This option display a button to login using OpenID as well as local WP login)
  • Client ID: Client ID from step 1
  • Client Secret: Client Secret from step 1
  • OpenID Scope: email profile openid
  • Login Endpoint URL:
  • Userinfo Endpoint URL:
  • Token Validation Endpoint URL:
  • End Session Endpoint URL:

Review each setting and choose the ones that you require for your installation. Examples of popular settings are Link Existing Users, Create user if does not exist, and Enforce Privacy

Step 3 - authentik

In authentik, create an application which uses this provider. Optionally apply access restrictions to the application using policy bindings.



OpenID Connect Generic Client Reference link: