Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error 400: invalid_request when trying to authorize account access using OAuth on internal workspace

I'm trying to grant access to a python script that updates google sheets documents daily. I was able to get the whole process working without using a Google Workspaces by making an external application in testing mode, but I have to log back in and allow access every couple of days. Since I assumed that was because the app was not in production, I tried to create an internal application with Google Workspaces, but when I go to the authorization page, I get an error code 400, with the error message, "The out-of-band (OOB) flow has been blocked in order to keep users secure." When I switch the workspace application from internal to external and mark it as testing, I am able to grant access, but still have to re-authorize occasionally.

0 0 710
0 REPLIES 0
Top Solution Authors