【问题标题】:How to secret authenticate my app without ask anything to the user如何在不向用户询问任何内容的情况下对我的应用程序进行秘密身份验证
【发布时间】:2014-07-07 17:22:54
【问题描述】:

我正在尝试制作一个 iOS 应用程序。我想在应用程序中列出我的谷歌驱动器的文件。但目前用户必须使用我的 google 帐户登录才能使用我想要的文件。

如何在不向用户询问任何帐户的情况下使用我的 google 帐户对我的应用程序进行身份验证以列出我想要的文件? 我尝试使用此 URL,但它仍然向用户询问帐户:

https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/drive.readonly&client_id=846173053406-qr0eh9j32rle71u7u5si5pd0kpfesuap.apps.googleusercontent.com&response_type=code&redirect_uri=http://localhost&access_type=offline&approval_prompt=force

我不确定是否了解秘密身份验证的工作原理。

谢谢!

【问题讨论】:

    标签: ios objective-c oauth-2.0 google-drive-api


    【解决方案1】:

    我从未使用过 google drive sdk,但通常您保存登录信息等数据的方式是使用 NSUserDefault 或使用 keychain

    【讨论】:

      猜你喜欢
      • 2017-05-30
      • 2016-12-15
      • 1970-01-01
      • 1970-01-01
      • 2013-10-11
      • 2016-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多