Setup a Google OAuth Application
In this guide, we'll help you setup a Google OAuth app so that your users can login using their Google accounts on your Measure Web dashboard.
- Visit console.cloud.google.com
- Open the hamburger menu on top left and hover above APIs & Services and click on OAuth consent screen from the fly-out menu
- On the next screen, choose User Type as Internal
- Enter an appropriate app name and user support email
- Add a logo of your company or team
- Add the top-level domain of your company
- Add a developer contact email
- In the scopes screen, choose the following scopes and click UPDATE
../auth/userinfo.email../auth/userinfo.profile
- Click on SAVE AND CONTINUE
- On the next screen, review all info and click on BACK TO DASHBOARD when done
- On the left sidebar, click on Credentials
- Click on the + CREATE CREDENTIALS button and choose OAuth client ID
- Select Web application
- Enter a name for the application
- Under Authorized JavaScript origins, enter your Measure dashboard URL (Example: https://measure.yourcompany.com). Replace
yourcompany.comwith your domain. - Under Authorized redirect URIs, enter the redirect URI in the following way: https://measure.yourcompany.com/auth/callback/google. Replace
yourcompany.comwith your domain. - Click CREATE
- Copy the Client ID and the Client Secret