This section describes how to configure authentication with OAuth2 to Google Drive in the Google Drive Upload/Download component. You will need your Client ID, Secret and the oAuth Token for the components to work. This page describes to get the former two.
To configure OAuth2 settings, Google Drive uses GCP.
Proper knowledge of GCP is required to configure it correctly. Please refer to the GCP documentation if you are not sure how to configure it in detail.
How to set up Client ID and Secret to access to Google Drive
Set up process
Follow the steps below to set up in GCP.
1-1. Enable Google Drive API from the library of API service.
Select Library from the API service menu.
Select Google Drive API and enable it.
1-2. Select “External” from the OAuth agreement screen menu and press the Create button.
1-3. Register your Google account email address for the test user and fill in the information where required.
1-4. Confirm the registered information in the Summary.
1-5. Click Create Authentication Information from the Authentication Information menu and select OAuth 2.0 Client ID.
For the application type, select “Web Application” and give it a name. Add “http://127.0.0.1:48888/callback” to the authenticated redirect URI and save it.
Check the OAuth2.0 Client ID2 saved data from the Authentication Information menu. The Client ID, Client Secret ID, and the authorized redirect URI will be displayed, so please note them down for use in the component. h4.
With the above settings, the publish status is “test” and the mode is only available to test users. By setting this mode to “Public”, it can be used by non-test users. Please contact Google if you have any questions on how to configure the settings in detail. Please note that we may not be able to provide support for individual GCP configurations.
Now that you have the client ID, client secret ID, and approved redirect URI required for OAuth 2.0, the preliminary preparations are complete.
Obtaining the oAuth Token
Now that you have Client ID and Secret, you can obtain your oAuth Token in an interactive way using your browser following the steps below:
Go to the settings and open the Base Property Profiles view, add your Google Authentication.
Once you have inserted your Client ID and and Secret, you can click on the “Obtain” button to retrieve your token using your web browser.
OAuth2 access token button to display the Get OAuth 2.0 access token panel. Press the Open Browser button to obtain the token. Once the token is obtained, press the Set button to automatically set it to the OAuth2 access token property.
Follow the steps on your browser, and return to Gravio Studio to set the authentication.
Need more help with this?
Join our slack community for help