MksDdn Reddy Auth
MksDdn Reddy Auth provides OTP-based authentication with: WordPress cookie session login for the frontend (shortcode, or REST with issue_session: true ). Optional Bearer token issuing for REST clients ( issue_token: true ; cookie not set by default on REST login). Rate limiting and one-time OTP veri
MksDdn Reddy Auth provides OTP-based authentication with:
- WordPress cookie session login for the frontend (shortcode, or REST with issue_session: true ).
- Optional Bearer token issuing for REST clients ( issue_token: true ; cookie not set by default on REST login).
- Rate limiting and one-time OTP verification.
- Optional site and REST API protection for unauthenticated visitors.
- Optional allowed request sources (Origin/Referer) for plugin REST endpoints.
The plugin maps each Reddy ID to a WordPress user and can create an account automatically on first successful login.
Getting Started
1. Configure the Reddy bot token
For production, define the token in wp-config.php :
define( 'MKSDDN_REDDY_BOT_TOKEN', 'your-bot-token' );
For local development you can store the token in Settings > Reddy Auth instead. Use Bot connection test to verify delivery to a Reddy user.
2. Set up the login page
Create a WordPress page (for example, /login/ ) and insert:
[mksddn_reddy_login]
Users enter their Reddy ID, receive a one-time code in Reddy, and sign in through the form.
3. Review protection settings
By default, both protection options are disabled so your site stays accessible after activation. Enable them only after the login page is configured:
- Protect site content — redirects unauthenticated visitors to the login page.
- Protect all REST API content — returns 401 for protected REST routes.
Public auth routes remain available without login:
- POST /wp-json/mksddn-reddy-auth/v1/auth/send-code
- POST /wp-json/mksddn-reddy-auth/v1/auth/login
- GET /wp-json/mksddn-reddy-auth/v1/auth/intent-status
- POST /wp-json/mksddn-reddy-auth/v1/auth/intent-status