K
Kinde3w ago
nixk

Wordpress

Attempting to follow the steps here: https://docs.kinde.com/integrate/third-party-tools/kinde-wordpress/ running into "ERROR (invalid-token-response): Invalid token response" WPengine hosted, version 6.7.1
Kinde docs
Connect Kinde and WordPress
Our developer tools provide everything you need to get started with Kinde.
No description
10 Replies
nixk
nixkOP3w ago
I also found this Wordpress Plugin: https://github.com/kinde-oss/kinde-auth-wordpress but it's also not authenticating me in WordPress, and I get redirected to my site with /?e=404
GitHub
GitHub - kinde-oss/kinde-auth-wordpress: Kinde SDK for wordpress
Kinde SDK for wordpress. Contribute to kinde-oss/kinde-auth-wordpress development by creating an account on GitHub.
Ages
Ages2w ago
Hi Nixk, Thank you for reaching out regarding the issues you're encountering with the Kinde integration on your WordPress site hosted on WP Engine, version 6.7.1. Let's address the specific problems you've mentioned: 1. "ERROR (invalid-token-response): Invalid token response" This error typically indicates a misconfiguration in the authentication setup. Please verify the following: - Token Host: Ensure this is set to the base URL of your Kinde account. - Client ID and Client Secret: Confirm that these credentials match exactly with those provided in your Kinde application settings. - Grant Type: Select the appropriate grant type that aligns with your authentication flow. - Redirect URI: It's crucial that the redirect URI specified in your Kinde application settings matches precisely with the one configured in the plugin. Any discrepancy can lead to token errors. For detailed guidance, please refer to our documentation: 2. Redirection to Site with "/?e=404" Being redirected to a URL ending with "/?e=404" suggests that the plugin is attempting to access a page that doesn't exist on your site. To resolve this: - Permalink Settings: Navigate to Settings > Permalinks in your WordPress dashboard. Without making any changes, click "Save Changes" to refresh your permalink structure. This can often resolve 404 errors resulting from misconfigurations. - Plugin Configuration: Double-check the URLs entered in the plugin settings to ensure they correspond to existing pages on your site. If after performing these steps the issue persists, please provide additional details or error messages, and we'll be more than happy to assist you further.
nixk
nixkOP2w ago
Thanks!. Would you recommend using the WP Kinde plugin or the OpenID Connect - Generic Client plugin suggested in the documentation?
Ages
Ages2w ago
Hi Nixk, For a more streamlined and straightforward integration, we recommend using the Kinde Auth WordPress Plugin. This plugin is specifically designed to work seamlessly with Kinde, reducing potential configuration challenges associated with generic plugins. This is a dedicated plugin developed by Kinde to simplify the integration process. It offers features like overriding default login URLs and providing shortcodes for login, registration, and logout buttons. https://github.com/kinde-oss/kinde-auth-wordpress If you encounter any issues or need further assistance during the setup process, please don't hesitate to reach out.
GitHub
GitHub - kinde-oss/kinde-auth-wordpress: Kinde SDK for wordpress
Kinde SDK for wordpress. Contribute to kinde-oss/kinde-auth-wordpress development by creating an account on GitHub.
nixk
nixkOP2w ago
I have double-checked all of the configuration, and I have opened and saved the permalink settings. No change.
nixk
nixkOP2w ago
No description
nixk
nixkOP2w ago
I need to sort this out by 5pm pacific time today. :/
Ages
Ages2w ago
Hi Nixk, Thank you for the update. I’ll pass this issue to our team for further review, and we’ll get back to you as soon as I have an update. Hi Nixk, Upon further review, we recommend using the OpenID Connect – Generic Client plugin for integrating Kinde with your WordPress site, as it is more suitable for this purpose. You can find detailed setup instructions in our documentation: https://docs.kinde.com/integrate/third-party-tools/kinde-wordpress/ Please follow the steps outlined there, and if you encounter any issues or need further assistance during the setup process, don't hesitate to reach out.
nixk
nixkOP2w ago
I'll be honest, being told repeatedly to read and follow the documentation that I've already read and followed and provided screenshots of is pretty disheartening.
Ages
Ages2w ago
Hi Nixk, I apologize for the inconvenience you've experienced. Let’s focus on resolving this issue step by step. --- Key Steps to Resolve the Issue 1. Verify Kinde Configuration - Ensure your Client ID, Client Secret, and Redirect URI in Kinde match exactly with what’s configured in the plugin. - Double-check the Token Host (should be your Kinde domain, e.g., https://your-subdomain.kinde.com). 2. OpenID Connect Plugin Settings - Client ID and Client Secret: Use the values from your Kinde app. - Scope: Ensure it’s set to openid profile email. - Endpoint Login URL: Use https://your-subdomain.kinde.com/oauth2/auth. - Endpoint Userinfo URL: Use https://your-subdomain.kinde.com/oauth2/v2/user_profile. - Endpoint Token URL: Use https://your-subdomain.kinde.com/oauth2/token. 3. Redirect URI - Ensure the Redirect URI in Kinde matches the one in the plugin (e.g., https://your-wp-site.com/wp-admin/admin-ajax.php?action=openid-connect-authorize). 4. Permalinks - Go to Settings > Permalinks and click Save Changes (even if no changes are made) to refresh the permalink structure. 5. Debugging - Enable debugging in WordPress by adding this to your wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

- Check the wp-content/debug.log file for errors. --- If the Issue Persists Please provide: 1. Screenshots of your Kinde app settings (with sensitive details redacted). 2. Screenshots of your OpenID Connect plugin settings. 3. Any error logs from wp-content/debug.log. We’ll prioritize resolving this for you by your deadline. Let me know how it goes

Did you find this page helpful?