Keycloak

If you're setting up Single Sign-On (SSO) with Keycloak, you might come across some error codes. We've compiled a list of these error codes and their corresponding solutions to help you troubleshoot any issues that may come up during the process. So, refer to this table to fix any problems you may face while setting up SSO with Keycloak.

Error Description
"We are sorry...Page not found" To fix this issue, please configure the correct domain and realm in authorization endpoint in the plugin. You can refer to this step to configure correct endpoints in the setup guide.
Realm does not exist To fix this issue, please configure the correct realm in token endpoint in the plugin. You can refer to this step to configure correct realm in the setup guide.
Invalid client secret To fix this issue, please configure the correct Client Secret in the plugin. You can refer to this step to configure correct client secret in the setup guide.
There has been a critical error on this website To fix this issue, please configure the correct domain in Authorization Endpoint in the plugin. You can refer to this step to configure correct domain in the setup guide.
invalid_scope Please make sure if you have entered only allowed Scopes in the plugin. Also, make sure those scopes are selected in Keycloak devapp. You can verify the step from this setup guide.
Invalid client credentials This error often arises from incorrect client credentials (client ID and secret) entered in the WordPress plugin settings. Make sure that the client credentials in the plugin match those set in Keycloak

Frequently Asked Questions (FAQ's)

Error Description
I cannot find Domain and Realm in keycloak admin interface To obtain a Realm and Domain, please follow these steps.
I'm encountering an "Invalid parameter: redirect_uri" error. How can I resolve this? This error often arises when the provided Redirect/Callback URL parameter doesn't match the allowed redirect / callback URLs configured in Keycloak. Ensure that the redirect / callback URL in your WordPress plugin settings matches the one set in Keycloak's client settings.
I am encountering an "We are sorry, page not found" error. How can I resolve this ? Keycloak has made changes to its endpoints starting from version 18. Consequently, it is no longer required to include the "/auth" substring in the endpoints when connecting to your Keycloak Provider. Therefore, I kindly request that you update the endpoints in our OAuth Client plugin to ensure compatibility with the latest version of Keycloak by looking at our guide.