My app invokes Google Oauth (the app was set up in Google Cloud console). When user is presented with a Google Oauth consent screen, for example, to approve access to adwords api, is there a way of controlling the scopes pre-selection?
Desirable would be to have access to Google adwords pre-selected, and then user, if they wish so, deselect it?
Is there any level of control over it, either programatically or by setup in Google Cloud console?
The problem is that as it currently stands, first time when users see Google Oauth window are presented with the scopes the application asks for, they are checkboxes that are not ticked, and in my experience a lot of users forget to tick them, but application depends on access to them.

So as you can see on above picture, for some scopes I need to explicitly click to allow app access.

Also, above is to show that I am approved for such scopes.
I've seen some other applications where they are just presented to the user as facts (that application is requiring these scopes and user cannot deselect them)
The Google consent screen is created by Google's authorization server. You don’t have any control over it. Except for the name and email address that appears above.When you add a scope to your request, Google will request the appropriate permission from the user giving the option to accept it or not. There have been a lot of changes to the consent screen.
If the user doesn’t tick the checkboxes, you need to request the consent again. If your app still needs the scope then it should request access to the user again until they tick the checkbox.
Google can't pre-select scopes for the user, because the user needs to have full control over what permissions to give out.That said, if the user clicks the "Continue" button without selecting any permissions, then a warning popup will be presented asking the user to confirm their intention.
Refer to the OAuth API verification FAQs and Google sign-in docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With