我们正在使用Gmail .NET SDK实施Gmail发送ASP .NET Web应用程序。
为了做到这一点
https://www.googleapis.com/auth/auth/auth/gmail/gmail.send.send 但是,在同意书上,用户可以向我们授予我们,
可以解开“代表您发送电子邮件”的复选框,这对我们来说是不可接受的,请参见下面:
我们已经看到了很多示例在Google同意屏幕上没有启用的复选框
。我不确定这是否是原因。
We're implementing Gmail sending in out ASP .NET web application with Gmail .NET SDK.
In order to do this we need all following scopes "email", "profile", "openid",
https://www.googleapis.com/auth/gmail.send" to be granted to us by user.
However, on the consent screen user can untick checkbox "Send email on your behalf" which is not acceptable for us, please see below:

We've seen quite a few examples where there are no enabled checkboxes on the Google consent screen. So, we're truiyng to figure out how to hide/disabled checkboxes in our app, could you please advise?
Probably, this is because of our application is still not verfified, but I'm not sure if this is the reason.
发布评论
评论(1)
答案:
这些复选框是由于新的颗粒帐户许可系统的滚动,它们是完全正常的,无法关闭的。
更多信息:
经过挖掘,我发现这篇Google Developers博客文章从2018年开始讨论,在此期间讨论了这一点。新的许可系统,用户将有能力单独授予或拒绝权限。
从博客文章中:
似乎这仍然处于推出阶段,即使在撰写本文时,自公告
准备更改以来,答案已经过去26个月:
以下是Google提供的指南,以准备如何为Oauth和APIS的Google帐户许可系统做准备:
您可以阅读上述博客文章以获取有关更改的完整信息。
参考:
Answer:
These checkboxes are due to the rolling out of a new granular account permission system, they are completely normal, and can not be turned off.
More Information:
After some digging, I discovered this Google Developers blog post from 2018 in which it is discussed that in the new permission system, users will have the ability to grant or deny permissions individually.
From the blog post:
It seems that this is still in the roll-out phase, even though at the time of writing this answer 26 months have passed since the announcement.
Preparing for the change:
The following are guidelines provided by Google as to how to prepare for the changes they are making to the Google Account permission system for OAuth and APIs:
You can read the aforelinked blog post for full information about the change.
References: