Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Android 应用程序中使用 AccountManager。用户登录,我得到了 authtoken。我想将此令牌传递给 Web 服务器,并让 Web 服务器根据 authtoken 检索用户的帐户名。我如何在服务器端做到这一点?谢谢
您使用的是哪种令牌?(客户端登录,OAuth)?帐户名称可能在也可能不在令牌中,如果它是专有的(ClientLogin),您将不知道实际格式。因此,只需将帐户和令牌传递给您的 Web 服务。