Gatey is a WordPress plugin that connects Amazon Cognito to your site in minutes — providing secure login, SSO, and MFA without any PHP backend. Built for Gutenberg and Elementor with native AWS Amplify support.
This repository contains the complete source code and frontend modules for the free version of Gatey WordPress plugin.
You can find the plugin’s continuously expanding, detailed documentation at: WP Suite Docs
- AI plugin manifest: https://wpsuite.io/.well-known/ai-plugin.json
- OpenAPI spec: https://wpsuite.io/.well-known/openapi.yaml
core/: Shared JavaScript modules (@smart-cloud/gatey-core, requireswpsuite-core)main/: Base JavaScript (Gatey.cognitonamespace) and CSS features, loaded on every page; build here and copy the generated assets frommain/dist/into the final plugin layoutadmin/: Logic for the WordPress admin interface; build here and copy the generated assets fromadmin/dist/andadmin/php/into the final plugin layoutblocks/: Authenticator screens and Gutenberg blocks; build here and copy the generated assets fromblocks/dist/into the final plugin layoutwpsuite-main/(in the Hub repository): Shared frontend bundle that is copied intohub-for-wpsuiteio/; itsdist/output provides the script loaded on every page to initialize WPSuite reCAPTCHA v3 when neededdist/folders undermain/,admin/, andblocks/: Contain compiled and minified frontend output that should be copied into the distributable plugin layout- Plugin PHP code and metadata (e.g.
composer.json,readme.txt) are located in the project root
The wpsuite-core/ package is not part of this repository.
It lives in the separate Hub for WPSuite.io repository and must be built and linked before building Gatey.
The shared WordPress Hub code lives in the wpsuite-admin/ and wpsuite-main/ directories of the Hub for WPSuite.io repository.
That repository hosts the shared administrative interface and global frontend assets used across WPSuite plugins, including Gatey.
- Node.js (>= 16.x)
- Yarn or NPM
- PHP >= 8.1
- Composer
- Git
You need both Gatey and Hub (for wpsuite-core). Place them side by side:
git clone https://github.com/smartcloudsol/hub-for-wpsuiteio.git
git clone https://github.com/smartcloudsol/gatey.gitYour folder structure should look like:
/projects/
hub-for-wpsuiteio/
wpsuite-core/
wpsuite-admin/
gatey/
core/
main/
admin/
blocks/
# Hub repo
cd hub-for-wpsuiteio/wpsuite-core
yarn install
cd ../wpsuite-admin
yarn install
# Gatey repo
cd ../../gatey/core
yarn install
cd ../main
yarn install
cd ../admin
yarn install
cd ../blocks
yarn installFirst, build and link wpsuite-core from the Hub repo:
cd ../hub-for-wpsuiteio/wpsuite-core
yarn run build
npm linkThen build and link Gatey's core package from core/, which depends on wpsuite-core:
cd ../../gatey/core
yarn run build
npm link @smart-cloud/wpsuite-core
npm linkThe remaining Gatey modules only need @smart-cloud/gatey-core (which already pulls in wpsuite-core):
# Inside each of main, admin, blocks
npm link @smart-cloud/gatey-corecd main
yarn run build-wp dist
cd ../admin
yarn run build-wp dist
cd ../blocks
yarn run build-wp distAfter building main/, admin/, and blocks/, copy the generated assets from each module's dist/ directory into the matching plugin directory. For admin/, copy the PHP files from admin/php/ as well.
From the root directory of Gatey:
composer install --no-dev --no-scripts --optimize-autoloader --classmap-authoritativeFrom the root directory:
./clean.sh- During development, rebuild
core/after shared logic changes (yarn run build) and rebuildmain/,admin/, orblocks/withyarn run build-wp distafter frontend changes. - Ensure
wpsuite-core(Hub repo) and Gatey's core package incore/are re-built and re-linked if modified. - PHP changes are loaded automatically by WordPress, no recompilation needed.
- You may use tools like
wp-envor a local WordPress install for testing.
Ensure the built assets are copied into the simplified plugin layout:
main/dist/*→main/blocks/dist/*→blocks/admin/php/*andadmin/dist/*→admin/
If you rebuild the shared Hub assets in the separate Hub repository, copy the following outputs into the plugin's hub-for-wpsuiteio/ directory according to that repository's instructions:
wpsuite-main/dist/*→hub-for-wpsuiteio/wpsuite-admin/php/*andwpsuite-admin/dist/*→hub-for-wpsuiteio/wpsuite-*-vendor/dist/*.js→hub-for-wpsuiteio/assets/js/wpsuite-*-vendor/dist/*.css→hub-for-wpsuiteio/assets/css/
The wpsuite-main/dist/ bundle provides the script that loads on every page and initializes the reCAPTCHA v3 flow used by WPSuite plugins whenever it is needed.
Once the structure matches the layout above, create the distributable ZIP:
git archive --format zip -o gatey.zip HEADThis uses rules defined in the .gitattributes file to include only required dist content and production PHP code.
- wpsuite-core (from Hub for WPSuite.io repo; must be built locally)
- gatey-core (built locally from the
core/workspace) - Node.js / Yarn or NPM: For building frontend assets
- Composer: For PHP dependency management
- PHP >= 8.1
- WordPress: Target environment
MIT License
If you encounter issues or want to contribute, feel free to open a pull request or an issue.