Amazon Cognito Login and SSO for WordPress with Gatey
Gatey adds Amazon Cognito login and SSO through code that runs in the browser and communicates directly with AWS, without routing authentication through WordPress or a PHP backend. Drop an Authenticator block on any page, use shortcodes where you need them, and control visibility with dynamic CSS variables. Because authentication and its API exchanges happen in the browser, Gatey also works when your site is exported to static HTML and served from S3/CloudFront or any CDN.
The sign-in flow makes no WordPress or PHP backend calls. No secrets are stored in WordPress. The browser communicates directly with your own Cognito User Pool.
What this documentation covers
This section focuses on reference material (no tutorials):
- Shortcodes — full options for
[gatey]and[gatey-account] - CSS Variables — dynamic custom properties for visibility and content
- JavaScript API — helpers, DOM events, and Redux observers
For step‑by‑step setup or migration scenarios, see the blog series on wpsuite.io (outside of this docs section).
Key capabilities
- Browser-based Cognito flow (no WordPress or PHP backend authentication handling)
- Block‑based UI with optional modal behaviour
- 22+ languages with LTR/RTL control
- Conditional layouts via CSS custom properties
- Signed API calls (JWT/IAM) straight from the browser
Quick links
- Insert an Authenticator anywhere with the
[gatey]shortcode - Print a user attribute with
[gatey-account attribute="given_name"] - Listen to
<Authenticator>events likesigned-in.gatey-authenticator - Call your API with
WpSuite.plugins.gatey.cognito.post({ apiName, path, options })
