The OAuth 2.0 Client ID setup is required in order to provide a credential for the UI to access the APIs. This step must be performed manually through the Google Cloud Console, as there is no CLI to perform the steps due to security concerns. If you need additional assistance, then follow the steps in Creating your credentials in our public documentation.
Before starting credential setup, ensure that you've configured your domain. Also, if you have not already, configure the OAuth consent screen.
If you have not yet configured the OAuth consent screen, you should configure it before proceeding.
-
Select the user type and then click 'CREATE'. If you will have Datashare users outside of your organization, choose external, otherwise you can choose internal.
-
Complete the form information for the app registration, and then click 'SAVE AND CONTINUE'.
-
Click 'SAVE AND CONTINUE' on the 'Scopes' page.
-
Click 'SAVE AND CONTINUE' on the 'Optional info' page.
-
Click 'BACK TO DASHBOARD'.
-
Click 'Create Credentials'.
-
Select the 'OAuth client ID' option.
-
Select application type 'Web application'.
-
Provide a name for the credential.
-
Add the following URIs to the 'Authorized JavaScript origins' by clicking on '+ ADD URI' within the section.
- https://{DOMAIN}
-
Add the following URIs to the 'Authorized redirect URIs' by clicking on '+ ADD URI' within the section.
- https://{DOMAIN}/
- https://{DOMAIN}/myProducts
- https://{DOMAIN}/activation
-
Click the 'CREATE' button.
-
Copy the client ID from the section titled 'Your Client ID' in the modal dialog. This will be used later when configuring the VUE_APP_GOOGLE_APP_CLIENT_ID value for the UI.