★ 5stars
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/mooxphp/press-wp/archive/refs/heads/main.zipFrom the readme
Moox Press WordPress Plugin
This is work in progress. Do not install on production!
The Moox WordPress Plugin is meant to be installed as companion for Moox Press.
It handles the Auth-Flow.
Some unsorted docs:
Features
- Synchronized users between Laravel and WordPress by using the wpusers table as Authenticatable Model in Laravel
- Filament User Resource for the WpUser Model allowing to manage users in Laravel
- SSO for Laravel and WordPress with an improved and configurable Auth-Flow
- Shared dotenv variables
Config or env values
...
Security
Hashing and Encoding:
The user ID is base64 encoded and then hashed using HMAC with SHA-256, using the APPKEY as the secret key. This creates a secure signature that can be verified by the receiving end.
Token Structure:
The token is structured as base64encodeduserid.signature, where the signature is the HMAC hash of the base64 encoded user ID. This structure allows for easy parsing and verification.
Security Consideration:
It's important to use hashequals for comparing the expected signature with the received signature to prevent timing attacks.
This approach securely transmits the user ID without sending it in plain text