WordPress OIDC Login
WordPress OIDC Login Plugin
★ 0stars
74composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sitmpcz/wp-oidc/archive/refs/heads/main.zipAlso on Packagist as sitmpcz/wp-oidc:
composer require sitmpcz/wp-oidcFrom the readme
WordPress OIDC Login Plugin
A lightweight WordPress plugin that replaces the standard login form with OpenID Connect (OIDC) authentication via Keycloak.
Features
- 🔐 OIDC Authentication - Single Sign-On via Keycloak
- 👤 Email-based User Matching - Pairs users by email address
- 🚀 Lightweight - Minimal code, single responsibility (authentication only)
- ⚙️ Environment Variables - Secure configuration via env variables
- 🔄 Logout Integration - Automatic logout redirect to Keycloak
- 📡 Backchannel Logout - Support for OIDC RP-Initiated Logout
- 🛡️ CSRF Protection - State parameter validation
- 💾 WordPress Native - Uses standard WordPress authentication
Quick Start
1. Install Dependencies
2. Install Plugin
3. Configure
Option A: Environment Variables (Recommended)
Option B: WordPress Admin
- Go to Settings → OIDC Login
- Enter Keycloak configuration
4. Setup Keycloak Client
In Keycloak admin console:
1. Create OAuth 2.0 Confidential Client
2. Set Valid Redirect URIs: https://example.com/wp-login.php?oidccallback=1
3. Copy Client ID and Client Secret
Configuration
Environment Variables (Recommended for Production)
See CONFIG.md for detailed setup options:
- .env file (develo
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.5 | Mar 27, 2026 |
| v1.0.4 | Mar 27, 2026 |
| v1.0.2 | Mar 27, 2026 |
| v1.0.1 | Mar 27, 2026 |
| v1.0 | Mar 27, 2026 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.