Difference between revisions of "Troubleshooting Sign-In using Google"

From WHMCS Documentation

(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)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
===Invalid details not saved. Please verify your details and try again===
 
===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.
+
You may receive the above error message when attempting to configure your Google API credentials. It indicates that the credentials cannot successfully authenticate with the Google API.
  
If you receive this message, double check your API Key and Secret and try again.
+
If you receive this message, check your API key and secret and try again.
  
===Google Sign-In is unavailable at this time. Please try again later===
+
You should also check the Authorized Javascript Origins configuration.
  
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.
+
To properly configure your Authorized Javascript Origin:
  
Please refer to [[Configuring Sign-In using Google]] for instructions regarding how to set the URL for your Google API App.
+
# Retrieve the '''WHMCS System URL''' value from '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[General Settings]]''' or, prior to WHMCS 8.0, '''Setup > General Settings'''. For example: <div class="source-cli"><nowiki>https://demo.whmcs.com/billing/</nowiki></div>
 +
* Remove the WHMCS installation directory from the end. For example: <div class="source-cli"><nowiki>https://demo.whmcs.com/</nowiki></div>
 +
* Remove the trailing slash from the end. For example: <div class="source-cli"><nowiki>https://demo.whmcs.com</nowiki></div>
 +
* Add this as an Authorised Javascript Origin.
  
===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===
+
===Google Sign-In is unavailable at this time. Please try again later===
 +
 +
Receiving this error when attempting to sign in using Google indicates that either the '''Authorized JavaScript origins''' and '''Authorized redirect URIs''' settings in your Google app are no longer valid or Google did not access WHMCS from the '''[[General_Tab#WHMCS_System_URL|System URL]]'''. A valid URI must begin with <tt>https://</tt> and use an active SSL certificate.
 +
 +
For instructions to set the URL for your Google API app, see [[Configuring Sign-In using Google]].
  
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.
+
===Google Sign-In is unavailable at this time. Please try again later. Error: Not a valid origin for the client: <nowiki>http://example.com</nowiki> has not been whitelisted for client ID xxxxx===
  
Please refer to [[Configuring Sign-In using Google]] for instructions regarding how to set the URL for your Google API App.
+
Receiving this error when attempting to sign in using Google indicates that the '''Authorized JavaScript origins''' and '''Authorized redirect URIs''' in your Google app are no longer valid.
  
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.
+
For more information, see [[Configuring Sign-In using Google]].
  
[[File:Google-url-error.png]]
+
You will only receive this error message when you are logged in as an admin and are attempting to use the Client Area Google sign in option. To verify the cause of the error, we recommend attempting to log in while authenticated as a user.
  
 
===Remote account linking via Google has failed. Please make sure that the system clock is set properly===
 
===Remote account linking via Google has failed. Please make sure that the system clock is set properly===
Line 32: Line 39:
  
 
Instructions for server administrators are located at https://developers.google.com/time/guides
 
Instructions for server administrators are located at https://developers.google.com/time/guides
 +
 +
===Verification for current settings failed===
 +
 +
A '''Verification for current settings failed validationResponse: {valid:false}''' error may display in the Admin Area when you attempt to activate the Google Sign-In Integration by entering valid '''Client Id''' and '''Client Secret''' 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 this error:
 +
 +
# Check the steps in [[#Invalid details not saved. Please verify your details and try again]] above.
 +
# Ensure that an SSL certificate is properly installed on your website
 +
# Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > General Settings''' or, prior to WHMCS 8.0, '''Setup > General Settings'''.
 +
# Adjust the '''System URL''' value so the URL begins with <tt>https://</tt>.
 +
# Click '''Save Changes'''.
 +
# Return to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Sign-In Integrations]]''' or, prior to WHMCS 8.0, '''Setup > Sign-In Integrations''' to complete the activation process
 +
 +
Google Sign-In Integrations will now be activated successfully.

Latest revision as of 12:44, 21 February 2023

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 credentials cannot successfully authenticate with the Google API.

If you receive this message, check your API key and secret and try again.

You should also check the Authorized Javascript Origins configuration.

To properly configure your Authorized Javascript Origin:

  1. Retrieve the WHMCS System URL value from 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. For example:
    https://demo.whmcs.com/
  • Remove the trailing slash from the end. For example:
    https://demo.whmcs.com
  • Add this as an Authorised Javascript Origin.

Google Sign-In is unavailable at this time. Please try again later

Receiving this error when attempting to sign in using Google indicates that either the Authorized JavaScript origins and Authorized redirect URIs settings in your Google app are no longer valid or Google did not access WHMCS from the System URL. A valid URI must begin with https:// and use an active SSL certificate.

For instructions to set the URL for your Google API app, see Configuring Sign-In using Google.

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

Receiving this error when attempting to sign in using Google indicates that the Authorized JavaScript origins and Authorized redirect URIs in your Google app are no longer valid.

For more information, see Configuring Sign-In using Google.

You will only receive this error message when you are logged in as an admin and are attempting to use the Client Area Google sign in option. To verify the cause of the error, we recommend attempting to log in while authenticated as a 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:

ntpdate time.google.com

Instructions for server administrators are located at https://developers.google.com/time/guides

Verification for current settings failed

A Verification for current settings failed validationResponse: {valid:false} error may display in the Admin Area when you attempt to activate the Google Sign-In Integration by entering valid Client Id and Client Secret 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 this error:

  1. Check the steps in #Invalid details not saved. Please verify your details and try again above.
  2. Ensure that an SSL certificate is properly installed on your website
  3. Go to Configuration () > System Settings > General Settings or, prior to WHMCS 8.0, Setup > General Settings.
  4. Adjust the System URL value so the URL begins with https://.
  5. Click Save Changes.
  6. Return to Configuration () > System Settings > Sign-In Integrations or, prior to WHMCS 8.0, Setup > Sign-In Integrations to complete the activation process

Google Sign-In Integrations will now be activated successfully.