OAuth Passport
Transform your WordPress site into a secure OAuth 2.1 authorization server. Enable third-party applications to authenticate users and access your APIs through standards-compliant OAuth flows.
by Ovidiu Galatan · github.com/galatanovidiu/oauthpassport-for-wordpress
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/galatanovidiu/oauthpassport-for-wordpress/releases/download/v0.0.1/oauth-passport.zipReadme
OAuth Passport
Transform your WordPress site into a secure OAuth 2.1 authorization server.
⚠️ EXPERIMENTAL ALPHA RELEASE
This plugin is in active development and intended for testing and development only.
DO NOT use in production environments. APIs and features may change significantly between versions.
What is OAuth Passport?
OAuth Passport enables your WordPress site to act as an OAuth provider, allowing third-party applications to authenticate users and access your APIs through secure, standards-compliant OAuth flows.
MCP Compliant: OAuth Passport is fully compliant with the Model Context Protocol (MCP) Authorization specification, making it ideal for building MCP servers that require OAuth 2.1 authorization.
Perfect for:
- MCP Servers - Authorization server for Model Context Protocol implementations
- Mobile Apps - Secure authentication for iOS/Android apps
- Desktop Applications - OAuth integration for desktop software
- API Access - Controlled access to WordPress REST API
- Third-party Integrations - Allow external services to connect
- Single Sign-On - Use WordPress as identity provider
Key Features
✅ OAuth 2.1 Compliant - Full implementation with mandatory PKCE
✅ Dynamic Client Registration - Self-service client registration (RFC 7591)
✅ Discovery Endpoints - Automatic configuration discovery
✅ WordPress Integration - Seamless user system integration
✅ Admin Interface - React-based management panel
✅ Secure by Default - HTTPS enforcement, token rotation, rate limiting
Quick Start
Installation
- Upload plugin to
/wp-content/plugins/oauth-passport - Activate through WordPress admin
- Configure at Settings > OAuth Passport
Register Your First Client
curl -X POST https://yoursite.com/wp-json/oauth-passport/v1/register \
-H "Content-Type: application/json" \
-d '{
"client_name": "My App",
"redirect_uris": ["https://myapp.com/callback"]
}'
Authorization Flow
- Direct users to authorization URL with PKCE
- Exchange authorization code for access token
- Use Bearer token for API access
Documentation
📖 Complete Documentation - Full setup and usage guide
🔧 Technical Reference - API endpoints and integration
🚨 Troubleshooting - Common issues and solutions
Requirements
- WordPress 6.4+
- PHP 8.0+
- MySQL 5.7+ / MariaDB 10.3+
- HTTPS (required in production)
- Pretty permalinks enabled
Standards Compliance
OAuth Passport implements the complete OAuth 2.1 specification and is fully compliant with MCP Authorization requirements:
- ✅ OAuth 2.1 (draft-ietf-oauth-v2-1-13)
- ✅ RFC 7636 (PKCE - Mandatory)
- ✅ RFC 7591 (Dynamic Client Registration)
- ✅ RFC 8414 (Authorization Server Metadata)
- ✅ RFC 9728 (Protected Resource Metadata)
- ✅ RFC 8707 (Resource Indicators)
- ✅ Model Context Protocol Authorization Specification
License
MIT License - see LICENSE file for details.
Support
- 📚 Documentation: docs/ folder
- 🐛 Issues: Report on GitHub
Made with ❤️ for the WordPress community
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.0.1 | Nov 20, 2025 | oauth-passport.zip | 4 |