OpenID Connect Generic Client source code
By Jonathan Daggerhart, on WordPress.org since 2018. 10,000+ active installs.
This plugin allows to authenticate users against OpenID Connect OAuth2 API with Authorization Code Flow. Below is its source code for every one of its 25 releases, what changed in the latest one, and how often it ships.
What changed in 3.11.5
Released Nov 20, 2026, 3 days after 3.11.4- Fix: Logins failed with “Invalid state” on hosts that only pass WordPress-style cookie names to PHP, such as Pantheon. The login cookie is now named wp-openid_connect_generic_browser, and the new openid-connect-generic-browser-cookie-name filter can change it.
- Improvement: When logging is enabled, a failed state check logs which part of the check failed.
5 files changed since 3.11.4: 5 modified, 0 added, 0 removed.
- includes/openid-connect-generic-client.php modified, +1,038 bytes
- languages/openid-connect-generic.pot modified, +2 bytes
- openid-connect-generic.php modified, same size
- readme.txt modified, +500 bytes
- vendor/composer/installed.php modified, same size
Release history
25 releases since February 2018- 3.11.5 Nov 20, 2026 Fix: Logins failed with “Invalid state” on hosts that only pass WordPress-style cookie names to PHP, such as Pantheon. The login cookie is now named wp-openid_connect_generic_browser, and the new openid-connect-generic-browser-cookie-name filter can change it.
- 3.11.4 Nov 16, 2026 Security: Login state is now tied to the browser that started the login and can only be used once.
- 3.11.3 Feb 13, 2026 Feature/improvement: Added configurable issuer setting for JWT validation.
- 3.11.2 Feb 12, 2026 Improvement: Support identity providers that omit algorithm parameter in JWKS (Microsoft Entra ID).
- 3.11.1 Feb 12, 2026 Fix bug created in 3.11.0 release when comparing issuer to derived expected value.