Howto use Google Accounts as login

你说的曾经没有我的故事 提交于 2019-12-08 17:02:09

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/4327981/howto-use-google-accounts-as-login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!