Sticklight Connector provides a structured way to use the WordPress user system in external or React-based applications.
The plugin extends the WordPress REST API with additional endpoints that allow authenticated clients to retrieve user context and interact with WordPress data, while fully respecting core authentication methods, roles, and capability checks.
Sticklight does not replace WordPress authentication. It relies on wp_authenticate for credential validation and WordPress Application Passwords for API access, and follows standard permission checks (current_user_can) for all requests.
wp_authenticate and issues Application Passwords for API accessAuthenticate with username (or email) and password:
POST /wp-json/sticklight/v1/auth/login
On success the response includes an Application Password for subsequent API requests and the authenticated user:
{
"app_password": "XXXX XXXX XXXX XXXX XXXX XXXX",
"user": {
"user_id": 1,
"username": "admin",
"display_name": "Admin",
"email": "admin@example.com",
"roles": ["administrator"]
}
}
Use the returned app_password with HTTP Basic Authentication for all further requests.
Retrieve the current authenticated user:
GET /wp-json/sticklight/v1/auth/me
Revoke the current Application Password session:
POST /wp-json/sticklight/v1/auth/logout
User creation is handled through the built-in WordPress REST API (POST /wp-json/wp/v2/users) and requires administrator authentication.
Requests to any endpoint must pass standard WordPress permission checks. Sticklight does not bypass or override these checks.
Sticklight follows WordPress security practices:
wp_authenticate, which respects all security plugin hooks (rate limiting, two-factor authentication, brute-force protection)current_user_can) on all endpointsFor external applications, it is recommended to: