HOWTO使用谷歌账户如登录账户、HOWTO

由网友(人生如梦光阴如箭i\])分享简介:我在考虑使用谷歌帐户的用户验证为我开发的服务。这将是一个客户端和服务器。我希望能够利用已签署的,在Android手机谷歌帐户,并用它作为我的服务器上验证。I'm thinking about using Google Accounts as a user verification for a service I'm...

我在考虑使用谷歌帐户的用户验证为我开发的服务。这将是一个客户端和服务器。我希望能够利用已签署的,在Android手机谷歌帐户,并用它作为我的服务器上验证。

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?

推荐答案

有一类叫做 AccountManager这就像一个注册表中的用户在线帐户。我想,这是你在找什么。

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.

还有一种叫做联合登录的谷歌,它允许用户登录使用他们的谷歌帐户。它更像是OpenID的

There's also something called Federated Login for Google, which allows users to login using their Google Account. Its more like OpenID