This tutorial walks you through using the CognitoPress admin panel, adding authentication blocks in the Gutenberg editor, and configuring a login page.
You can install CognitoPress in two ways:
Go to WP Admin → CognitoPress → Settings. This is where you’ll connect your Cognito User Pool and control plugin behavior.
You can now use the login flow in two ways:
cognitopress id="your-pattern-id"
Back in CognitoPress → Settings → General, choose the WordPress page you created as the “Sign In Page”.
This ensures unauthenticated users are redirected to the correct login flow.
To fully replace the native WordPress login screen (/wp-login.php
), go to CognitoPress → Settings → WordPress Login.
Once activated, your Cognito-based login replaces /wp-login.php
— including admin access and login-required redirects.
When WordPress Login Integration is enabled, you can assign WordPress roles to users based on their Cognito groups.
Go to CognitoPress → Settings → WordPress Login and scroll to the “Cognito Group to WordPress Role Mapping” section.
If a user doesn’t match any mapped group, they may receive the default role or no access to WP backend — depending on your configuration.
When the plugin is active and a new user registers through Cognito, CognitoPress:
This ensures WordPress-based features like dashboards or custom plugins still function.
Note: In headless setups (where WordPress is not running at registration time), local user sync will not occur — only Cognito will have the user record.
CognitoPress does not store passwords in WordPress. However, users can always reset their password later via Cognito if needed (or WordPress if CognitoPress is deactivated).
You now have a working Cognito login flow inside your WordPress site — visually integrated, and fully managed via CognitoPress.