简体   繁体   English

Android-使用Google+登录而不使用GooglePlayServices

[英]Android - sign-in with google+ without GooglePlayServices

To authenticate with Google+ on Android, Google has instructions for doing it with their Google Play Services library, yet on the web and on iOS these definitely do not have Google Play Services available but are able to authenticate with Google+. 要在Android上通过Google+进行身份验证,Google会提供使用其Google Play服务库进行操作的说明,但是在网络和iOS上,这些绝对没有提供Google Play服务,但可以通过Google+进行身份验证。

How would Google+ authentication be implemented on Android if GooglePlayServices are not available? 如果GooglePlayServices不可用,如何在Android上实现Google+身份验证? Similarly, Facebook has a webview based authentication subroutine if the user does not have Facebook installed, so I am curious how it works for Google+ 同样,如果用户未安装Facebook,Facebook也会有一个基于Webview的身份验证子例程,所以我很好奇它如何在Google+上运行

If I remember correctly (it has been some time since I implemented them) Google+, Twitter, Facebook, etc. use OAuth as an authentication (sign-in) mechanism. 如果我没记错的话(自实施它们以来已有一段时间),Google +,Twitter,Facebook等将OAuth用作身份验证(登录)机制。 As you mentioned this is usually done in the form of a web page, through a WebView. 如您所提到的,这通常是通过WebView的网页形式完成的。 If I have some time later I will update with links, and an example. 如果有一段时间,我将提供链接和示例更新。

UPDATE: I haven't actually done the steps, but a quick overview of them, and it should be what are you are looking for iOS access Google Services . 更新:我实际上并没有完成这些步骤,而是对其进行了简要概述,这应该是您在寻找iOS访问Google Services的方法 The process should be the same/similar for Android/Web/etc. 对于Android / Web / etc,该过程应该相同/相似。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM