Troubleshooting Sign-In using Google
Contents
- 1 Invalid details not saved. Please verify your details and try again
- 2 Google Sign-In is unavailable at this time. Please try again later
- 3 Google Sign-In is unavailable at this time. Please try again later. Error: Not a valid origin for the client: http://example.com has not been whitelisted for client ID xxxxx
- 4 Remote account linking via Google has failed. Please make sure that the system clock is set properly
- 5 Verification for current settings failed
Invalid details not saved. Please verify your details and try again
You may receive the above error message when attempting to configure your Google API Credentials. It indicates that the values provided are not able to successfully authenticate with the Google API.
If you receive this message, double check your API Key and Secret and try again.
Also double-check the Authorized Javascript Origins value is configured appropriately. To confirm this:
- Note the WHMCS System URL at Configuration () > System Settings > General Settings or, prior to WHMCS 8.0, Setup > General Settings. For example:
https://demo.whmcs.com/billing/
- Remove the whmcs installation directory from the end, eg:
https://demo.whmcs.com/
- Remove the trailing slash from the end, eg:
https://demo.whmcs.com
- Add this as an Authorised Javascript Origin.
If you receive this error message when attempting to Sign in using Google, this indicates that the URL configured within your Google App is no longer valid.
Please refer to Configuring Sign-In using Google for instructions regarding how to set the URL for your Google API App.
If you receive this error message when attempting to Sign in using Google, this indicates that the URL configured within your Google App is no longer valid.
Please refer to Configuring Sign-In using Google for instructions regarding how to set the URL for your Google API App.
You will only receive this error message when logged in as an admin user and attempting to use the client area Google Sign In option. To verify the cause of the error, we recommend attempting to login while authenticated as an admin user.
Remote account linking via Google has failed. Please make sure that the system clock is set properly
In order for the authentication function to operate, your server time must be within 30 seconds of Google's server time. This error indicates the difference between the two server clocks is outside the acceptable tolerance level (timezones differences do not cause this error).
To resolve this it is necessary to sync your server clock with a NTP server to ensure it is completely accurate. You can use any NTP server of your choice, but Google do offer their own. This can be done from the server command line and typically requires root access:
Instructions for server administrators are located at https://developers.google.com/time/guides
Verification for current settings failed
The error Verification for current settings failed validationResponse: {valid:false} may be observed in the WHMCS Administration Area when activating the Google Sign-In Integration, after entering valid ClientId and ClientSecret credentials and clicking Save & Activate:
This error occurrs when:
- The Authorized Javascript origin or Authorised redirect URI settings are incorrect.
- The WHMCS installation is configured to use an insecure http:// connection. A secure and properly configured https:// connection is required to successfully use the Sign-In Integrations feature.
To resolve:
- To resolve refer to #Invalid details not saved. Please verify your details and try again
- Ensure that an SSL Certificate is properly installed on your website
- Navigate to Configuration () > System Settings > General Settings
- Adjust the System URL value so the URL begins with https://
- Click Save Changes
- Return to Configuration () > System Settings > Sign-In Integrations to complete the activation process
Google Sign-In Integration will now be activated successfully.