我们可以使用 google 登录 Gmail API 吗?
Can we use google sign-in for Gmail APIs?
在我们的应用程序中,我们集成了 Google 登录功能,如下所述:
https://developers.google.com/identity/sign-in/web/sign-in
我们的应用程序也在使用 Gmail 提供的 serverAuthCode 寻找用户的 Gmail 帐户。那么我们可以使用 Google 登录 Gmail API 访问权限,还是我们需要按照此处的说明登录 Gmail:
根据Authorizing Your App with Gmail:
All requests to the Gmail API must be authorized by an authenticated
user. Gmail uses the OAuth 2.0 protocol for authenticating a Google
account and authorizing access to user data. You can also use Google+
Sign-in to provide a "sign-in with Google" authentication method for
your app.
如果你看过你提供的GoogleSign-inlink的视频,你就会知道这个工具是用来处理"signing-in"的。现在,如果您想使用 Gmail APIs,您将需要做更多的事情。除了 OAuth,您还需要处理 authentication and authorization 以及范围。
由于您似乎在研究 Android 和 iOS,请查看此快速入门。他们为 Gmail API 实施了 sign-in:
在我们的应用程序中,我们集成了 Google 登录功能,如下所述:
https://developers.google.com/identity/sign-in/web/sign-in
我们的应用程序也在使用 Gmail 提供的 serverAuthCode 寻找用户的 Gmail 帐户。那么我们可以使用 Google 登录 Gmail API 访问权限,还是我们需要按照此处的说明登录 Gmail:
根据Authorizing Your App with Gmail:
All requests to the Gmail API must be authorized by an authenticated user. Gmail uses the OAuth 2.0 protocol for authenticating a Google account and authorizing access to user data. You can also use Google+ Sign-in to provide a "sign-in with Google" authentication method for your app.
如果你看过你提供的GoogleSign-inlink的视频,你就会知道这个工具是用来处理"signing-in"的。现在,如果您想使用 Gmail APIs,您将需要做更多的事情。除了 OAuth,您还需要处理 authentication and authorization 以及范围。
由于您似乎在研究 Android 和 iOS,请查看此快速入门。他们为 Gmail API 实施了 sign-in: