Specify the Description, Directory, Application Name, Client ID, Client Secret and Refresh Token.
To set the Refresh Token, click on "Request Refresh Token". A dialog will be displayed where you can request a code. When clicking "Request code" the Google website will be opened in a new tab. Please login with your Google account and accept the access. Copy the generated code into the clipboard and return to the dialog. Paste the copied code into the input field. The code will be converted into a Refresh Token.
For Client ID, Client Secret and Refresh Token you need a valid Google account and must provide access to Google Drive via the Google Developers Console.
Create an OAuth 2.0 Application in Google
1. Open https://console.developers.google.com/ (Google Developer Console) and create a project by clicking "Create Project". If you already have a project there and want to add another one just for this matter, there is a combobox at the top of the page showing the currently active project name or "Select a project". Click on it.
2. Click on the '+' button on top right of the popup. Choose a name for your project and click on 'Create' button.
3. After the project ID is created, use the same combobox to switch to this new project and then go to "Credentials > OAuth consent screen" tab and choose a product name (important: in Report Server by creating the GoogleDrive Upload Task action, you should write it in the "Application Name" field) and save it.
4. Then go to Credentials tab and click "Create credentials" and "OAuth client ID".
5. Choose "Other" as "Application Type" and click "Create".
6. From the next popup copy your "Client ID" and "Client secret" to somewhere safe.
7. To be able to use the Google Drive API, you also need to enable it first as follows:
8. Open https://console.developers.google.com/ (Google Developer Console) and in the "Dashboard" tab click on the "Enable APIs and Services" link at the top of the page.
9. On the next page write "Google Drive API" in the search box and then click on the "Google Drive API" result.
10. On the next page click on the "Enable" button.