Setting up authorization via Google

How to set up authorization via Google for personal account and for checkout in the online store

If you have several websites, then you have to set up authorization separately for each site.
  1. Sign up for a Google account.
  2. Open https://console.cloud.google.com/cloud-resource-manager.
  3. Create a new project using CREATE PROJECT button.
  4. Enter any project name and click on CREATE.

  5. Open menu item Solutions → All products.
  6. Click Management → APIs & Services.
  7. Open the OAuth consent screen section.
  8. Select “User Type → External” and click on CREATE.
  9. On step “1. OAuth consent screen” enter an app name that will be visible to website visitors when they will sign in via Google and an email address for them to contact you with sign-in related questions.
  10. Scroll down to the bottom of the page and add your website’s domain name to “Authorized domains” field.
  11. In the “Developer contact information” section enter an email address for Google to notify you about any changes in this project.

  12. Click on SAVE AND CONTINUE.
  13. On steps “2. Scopes” and “3. Test users” click on SAVE AND CONTINUE.
  14. Open the Credentials section.
  15. Click on Create credentials and select OAuth client ID.
  16. Select app type Web application.

    In the “Authorized redirect URIs” field enter a URL of the form https://mydomain.com/oauth.php?provider=google. Replace mydomain.com with your website’s domain name.

    Click on CREATE.
  17. Copy the displayed Client ID and Client Secret values.
  18. Log into your Webasyst account and open the Site app.
  19. In the website list, select the one for which you need to set up authorization via Google.
  20. Open the Personal section.
  21. Of the authorization is not enable for the selected website, enable it.

  22. In the Ways of login and registration section enable Social networks (additional authorization option).

  23. Enable the Google option.
  24. Paste the copied Client ID and Client secret values into the provided fields.
  25. Save authorization settings using the button at the page bottom.
  26. Check how the authorization works:
    • Open your website in a “private” browser window or tab. Or use another browser where you are not logged in your Webasyst backend or in Google.
    • Click on Log in.
    • Click the Google icon.
    • Type your Google authorization credentials.

    • Upon data submission, the page will reload to show authorized user’s personal account on your website.

Done! You have set up authorization via Google on your website.

0 comments

    Add comment

    To add a comment please sign up or login

    Раздел помощи работает на основе приложения «Хаб»