WHMCS设置:Google账号登录

2023年11月2日 | 分类: 【源码】

参考:https://docs.whmcs.com/Configuring_Sign-In_using_Google

  1. Visit https://console.developers.google.com/.
  2. Log in to your Google account.
    Changing the Google account you use to create the app requires users to reauthenticate and relink their accounts.
  3. Choose Select a project on the top menu.
    Google-cloud-select-project.png
  4. Choose New Project.
    Google-sign-in-2.png
  5. Enter a project name.
    Google-sign-in-3.png
  6. Click Create.
  7. Select Credentials in the left sidebar.
  8. Choose Create Credentials.
    Google-sign-in-5.png
  9. Select OAuth client ID.
  10. Click Configure Consent Screen.
  11. Select External.
    Google-sign-in-6.png
  12. Click Create.
  13. Add app information details.
    Google-sign-in-7.png
  14. Add an app domain.
    Google-sign-in-8.png
  15. Add authorised domains.
    Google-sign-in-9.png
  16. Add developer contact information.
    Google-sign-in-10.png
  17. Click Save and Continue.
  18. Select Credentials in the left sidebar.
  19. Choose Create Credentials.
  20. Select OAuth client ID.
  21. Choose Web Application.
    Google-sign-in-11.png
  22. Enter a name for your OAuth 2.0 client.
  23. Enter your full root domain in Authorized JavaScript origins.
    Google-sign-in-12.png
  24. Enter your full root domain in Authorized redirect URI.
    Google-sign-in-13.png
  25. Click Create.
  26. Save your client ID and secret, which you will use to activate Google Sign-In within WHMCS.
    Google-sign-in-14.png
  27. Log in to the WHMCS Admin Area.
  28. Navigate to Configuration () > System Settings > Sign-In Integrations or, prior to WHMCS 8.0, Setup > Sign-In Integrations.
  29. Select Activate under the Google heading.
  30. Enter your Google Client ID and Client Secret.
  31. Click Save & Activate.

WHMCS will attempt to validate the details you have entered. If the client ID and secret are valid and successfully authenticate with the Google API, the values will be saved.

报错:Google Sign-In is unavailable at this time. Please try again later. Error: You have created a new client application that uses libraries for user authentication or authorization that are deprecated. New clients must use the new libraries instead. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information.

报错:Action Required
Comply with domain verification requirements
Ensure your application’s domains have completed the Search Console verification process

网址:https://search.google.com/search-console/welcome