如何使用 Google 帐户登录
我正在考虑使用 Google 帐户作为我正在开发的服务的用户验证。这将是一个客户端和服务器。我希望能够在 Android 手机上使用已登录的 Google 帐户,并将其用作我的服务器上的验证。
我在哪里可以找到这方面的信息?
是否可以使用手机上已登录的帐户,还是必须在应用程序中重新登录?
I'm thinking about using Google Accounts as a user verification for a service I'm developing. This will be a client and server. I'm hoping to be able to use the already signed-in Google Account on the Android phone and use that as a verification on my server.
Where can I find information about this?
Is it possible to use the already signed-in account on the phone or do I have to re-sign-in in my application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个名为
AccountManager
的类,它的作用类似于用户的注册表在线帐户。我想这就是您正在寻找的。还有一种名为 Google 联合登录的功能,允许用户使用其 Google 帐户登录。它更像是 OpenID
There's a class called
AccountManager
which acts like a registry for the users online account. I think this is what you are looking for.There's also something called Federated Login for Google, which allows users to login using their Google Account. Its more like OpenID