简体   繁体   English

使用来自不同平台的Google OAuth2令牌

[英]Use Google OAuth2 token from different platforms

I use AccountManager to retrieve google accounts on the Android device. 我使用AccountManager在Android设备上检索Google帐户。 After it I asked user for token with some scope and after I get it, I want to send it to the server and use token for API calls from backend side. 之后,我要求用户提供具有一定范围的令牌,并且在获得令牌之后,我想将其发送到服务器,并将令牌用于后端的API调用。

So, my question is can I use AccountManager for this? 所以,我的问题是我可以使用AccountManager吗? Or only GoogleAuthUtil? 还是只有GoogleAuthUtil?

这听起来很像跨客户端身份的用例。

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

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