Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.02k stars 136 forks source link

Change default scope for all requests #324

Closed vmsh0 closed 2 years ago

vmsh0 commented 2 years ago

Hello,

Is it possible to specify a default scope for all requests?

I would like to use the /drive scope for all requests, as it is the common denominator of all requests my application performs. Even when a /drive token is avaible in the authenticator, requests which have a narrower scopes as their default scope will request a new token. This forces the user to perform authorization multiple times.

I could, of course, manually specify the /drive scope for each single request. But I'm wondering whether there is a canonical way to force a scope for all requests - or whether there should be.