Since OAuth via JWT is automatic, no user interaction is involved. Google API's indeed work only via OAuth2.0 using a bearer token.īut you can obtain a bearer token from a GCP Service Account's JWT token. I really just need to know if this is at all possible or not, so I can either continue with the pursuit or leave it and try something different. Only the API Key and then you can have access. Once the project is created, click on Go To. This is similar functionality to much of the APIs that Mashery allows, as well as Twilio. Create your own Google Drive OAuth application Go to Google API Console and choose Create New Project. But I really want to avoid all that if possible. Since it's automated I don't want to have to fill in the credential form and click "Accept" and all that, of course I realize that after that I'd be able to have a refresh token. In fact I have a way to connect to the user's Google Drive already with OAuth2, but I want to only connect to mine in this way in order to automate pushing off statistical data to forms on my own Google Drive. My current understanding is that the only scope (access level) available for me to use in this case is 'full drive access'. Most users should, instead, use higher-level wrappers that facilitate. The user logs in with their own account/credentials. Build a request, using knowledge of the Drive v3 API from its Discovery Document. None of the two seemed to make any difference. However, yesterday while troubleshooting, I disabled 2fa and enabled 'access for less secure apps'. ![]() ![]() The specific Google account that is facing the issue prompted me to enable 2fa and i did. However, I want to know if there is a way to simply have an API Key for the Google Drive instance and simply through that, access my files and folders. 14 My app uses Google Drive API to read files that a user has uploaded to their Drive storage area, and to write files and folders into this same directory. System updated to Miui 12.5.3.0 from whatever it was before. I realize that OAuth2 allows for the server or client to be able to connect securely to the particular Google Drive in question. I have been rummaging through all the Google documentation on GoogleDrive SDK and the Drive API, however I cannot find out if there is a way to connect to a particular GoogleDrive without having to use OAuth2.
0 Comments
Leave a Reply. |