Single Sign-On
ClubMS supports bidirectional SSO with WordPress.
Direction 1: WordPress β ClubMS
Users can log into ClubMS from a WordPress site:
- User clicks βLogin with ClubMSβ on WordPress
- WordPress plugin collects email + password
- Plugin sends credentials + license key + HMAC signature to ClubMS
- ClubMS verifies license key, site URL, and HMAC
- ClubMS authenticates user and returns session token
- WordPress stores session in user meta
- User is logged in on both platforms
Direction 2: ClubMS β WordPress
Users can log in from ClubMS and be redirected to WordPress:
- User initiates WP login from ClubMS dashboard
- ClubMS generates a signed callback URL with HMAC token
- User is redirected to WordPress callback endpoint
- WordPress plugin verifies the HMAC signature
- Plugin creates or updates the WordPress user
- User is logged into WordPress
Security Layers
The SSO integration is protected by 10 independent security layers:
- License key β HMAC-SHA256 validated on every request
- Site URL check β Origin must match registered
wp_site_url - HMAC signature β Request body signed to prevent tampering
- Rate limiting β Per-IP throttling on SSO endpoints
- Turnstile β Bot protection on login forms
- OTP verification β Email verification for new SSO users
- WordPress nonce β CSRF protection on AJAX calls
- Account lockout β 5 failed attempts β 15 min lockout
- Audit logging β All SSO events logged
- JWT with short expiry β 15-minute access tokens
Embed Mode
The SSO plugin supports an embed mode where ClubMS pages are displayed within an iframe on the WordPress site. The session token is passed between frames securely.
Last updated on