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://code.google.com/apis/console#access.
  3. Create a new project using “CREATE PROJECT” button.

  4. Enter any name using only letters, digits, quotes, dashes, whitespaces, or exclamation marks.

  5. Wait until your project is created.

  6. Go to “API Manager → Credentials”.

  7. Create credentials. Select option “OAuth client ID”.

  8. Configure the consent screen.

  9. Enter your website or company name in field “Product name shown to users”.

  10. Select app type “Web application”.
  11. In field “Authorized redirect URIs” enter a URL of the form http://mydomain.com/oauth.php?provider=google. Replace mydomain.com with your website’s domain name.

  12. Save changes using “Create” button.
  13. Copy displayed “Client ID” and “Client secret” values.

  14. Log into your Webasyst backend and open Site app.
  15. In the website list, select the one for which you need to set up authorization via Google.
  16. Open section “Personal”.
  17. Enable authorization for the selected website.



    If authorization is already enabled, then click “Auth & Sign Up settings”.

  18. Enable “Third-party authorization” option.
  19. Enable Google option.
  20. Paste the copied “Client ID” and “Client secret” values into provided fields.

  21. Save authorization settings using the button at the page bottom.
  22. 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 “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.
  23. Done! You have sucessfully set up authorization via Google on your website.

0 comments

    Add comment

    To add a comment please sign up or login