You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Google clamping down on OAuth scopes being available to API clients [1], it is very important to make API calls with the LEAST "intrusive" scope. To give an example, here are the docs of spreadsheets.create (emphasis mine):
However, v0.5.0 of the library requires ALL of the scopes to make this API call:
type instance Scopes SpreadsheetsCreate
= '["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
-- Defined in ‘Network.Google.Resource.Sheets.Spreadsheets.Create’
I have tried making this API call with the least restrictive (and in fact "free-to-use" OAuth scope), i.e. https://www.googleapis.com/auth/drive.file" and it seems to work.
[1] A lot of scopes are now classified as restricted and/or sensitive, and one has to complete a lengthy verification process to get access to these scopes in an external/production app.
The text was updated successfully, but these errors were encountered:
With Google clamping down on OAuth scopes being available to API clients [1], it is very important to make API calls with the LEAST "intrusive" scope. To give an example, here are the docs of
spreadsheets.create
(emphasis mine):However, v0.5.0 of the library requires ALL of the scopes to make this API call:
I have tried making this API call with the least restrictive (and in fact "free-to-use" OAuth scope), i.e.
https://www.googleapis.com/auth/drive.file"
and it seems to work.[1] A lot of scopes are now classified as restricted and/or sensitive, and one has to complete a lengthy verification process to get access to these scopes in an external/production app.
The text was updated successfully, but these errors were encountered: