菜鸟教程小白 发表于 2022-12-11 19:27:06

ios - 使用 Google Drive 登录未获得授权


                                            <p><p>我指的是链接</p>

<p> <a href="https://developers.google.com/drive/v3/web/quickstart/ios#step_1_turn_on_the_api_name" rel="noreferrer noopener nofollow">https://developers.google.com/drive/v3/web/quickstart/ios#step_1_turn_on_the_api_name</a> </p>

<p>使用我的应用程序验证 google drive。我可以使用 <code>pod 'Google/SignIn'</code> 与 google 进行签名,但不能使用 </p>

<pre><code>pod &#39;GoogleAPIClientForREST/Drive&#39;, &#39;~&gt; 1.1.1&#39;
pod &#39;GTMOAuth2&#39;, &#39;~&gt; 1.1.4&#39;
</code></pre>

<p>如链接所示。我还可以看到上面的谷歌链接说 <strong>最后更新于 2017 年 3 月 9 日。</strong>
<a href="/image/NYzCE.png" rel="noreferrer noopener nofollow"><img src="/image/NYzCE.png" alt="enter image description here"/></a> </p>

<p>似乎这段代码现在没有被使用,但谷歌文档没有更新。如果我错了,请纠正我。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>嗯.. Google 一定没有更新文档。 </p>

<p>虽然,他们有 <a href="https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html?m=1" rel="noreferrer noopener nofollow">announced</a>不再支持来自嵌入式浏览器的身份验证,以提高应用的可用性。</p>

<blockquote>
<p>In the coming months, we will no longer allow OAuth requests to Google in embedded browsers known as “web-views”,</p>
</blockquote></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 使用 Google Drive 登录未获得授权,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/43291651/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/43291651/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 使用 Google Drive 登录未获得授权