I copied a .txt file to my google drive and am trying to open it with the DrEdit C# sample. When I try to open the file, the ASP.NET server gets a 403 forbidden response from the server. The body of the response says:
The authenticated user has not installed the app with client id 229016086359-m19r73ngg9pr863m5h7eso151kcc2uut.apps.googleusercontent.com [403]
I am also not able to save a new file using the sample either. I think I am close, but am not sure what is causing this problem. The documentation is not completely clear about the configuration settings so I probably got one of them wrong, here is what I am doing:
- ClientCredentials.cs - CLIENT_ID - Set to the "Client ID" value in the "Client ID for Drive SDK" section on the "API Access" page
- ClientCredentials.cs - CLIENT_SECRET - Set to the "Client secret" value in the "Client ID for Drive SDK" section on the "API Access" page
- ClientCredentials.cs - REDIRECT_URI - Set to the base URL for my ASP.NET application
- dredit.js - setAppId('') on line 104 - set to the value of "App Id:" on the Drive SDK page
- manifest.json - app_console_project_id - set to the value of "App Id:" on the Drive SDK page
I did upload the app via the chrome web store, published to test accounts and installed the app from the chrome web store. Here is what I am doing:
- Launching the app (from web store or via URL).
- Allow access on the request for permission screen
- Close the edit details dialog for untitled.txt
- Click the open button - it shows the text file I coped to google drive from Windows
- Double click the text file, it shows the empty edit screen with a button "Loading" at the top. The network traffic shows I am getting 500 internal server error and the response body shows 403 is being returned from google drive to the ASP.NET application
Thanks for any help!