ayu*_*hgp 2 authentication android azure azure-mobile-services
构建的身份验证器中的Azure MobileServiceClient在尝试使用Android设备登录时显示webview.有没有办法可以用它来调用Play服务登录对话框并通过那里登录?我按照这里给出的教程.
是的,您可以使用"客户端定向流程",假设Google Play服务登录对话框生成标准Google令牌,并且您知道Google App的客户端ID.
2)配置您的应用以使用[Google Play服务登录对话](https://developers.google.com/android/guides/google-services-plugin)
3)获取Google令牌(来自GoogleAuthUtil.getToken)
4)使用google令牌使用Azure移动应用Android SDK进行客户端定向登录:
ListenableFuture<MobileServiceUser> mLogin = mClient.login(MobileServiceAuthenticationProvider.Google, theGoogleToken);
Run Code Online (Sandbox Code Playgroud)
不应该生成另一个对话框,但是您将按照服务器流程中的描述返回ZUMO-TOKEN
| 归档时间: |
|
| 查看次数: |
326 次 |
| 最近记录: |