菜鸟教程小白 发表于 2022-12-11 17:48:11

ios - 您如何在 swift 中实现 AWS 开发人员身份验证?


                                            <p><p>我已经搜索 AWS iOS SDK (Swift) 的文档 2 天来回答我认为应该是一个简单问题的答案,如果我在这里完全遗漏了一些东西,很抱歉。所以这就是我想要做的:</p>

<p>我一直在开发 iOS 应用程序,并决定采用 AWS 后端路线。我想拥有 facebook 和开发人员认证的身份。我现在熟悉身份验证流程并编写了一个后端来验证用户并将身份发送到 Cognito,接收 Cognito 身份 id 和 open_idtoken 并将它们作为响应返回。我的问题是在 iOS 端的身份提供者的实现。关于如何实现 <code>AWSAbstractCognitoIdentityProvider</code> 这里有非常清晰的文档:</p>

<p> <a href="http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html" rel="noreferrer noopener nofollow">http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html</a> </p>

<p>问题是协议(protocol)似乎不再存在,我的努力使我回到了这个文档。这让我相信我错过了一些东西。我是吗?因为我找不到 <code>AWSAbstractCognitoIdentityProvider</code> 的新替代方案。我还阅读了 AWS 开发人员的几篇不同的博客文章,但它们似乎都指向这个看似不存在的协议(protocol)。</p>

<p>有人能指出我在哪里可以找到更多最新文档的正确方向吗?或者如果这仍然是它的完成方式,请帮助我看看我缺少什么。</p>

<p>PS:我的 facebook 实现已经启动并正在运行,所以我也尝试从那里对其进行逆向工程,但无法得到任何具体的东西。提前感谢您的宝贵时间。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>Joe:作为 <a href="http://BruceBuckland/aws-mobilehub-helper-ios" rel="noreferrer noopener nofollow">fork off of the aws-mobile-hub-helper repo</a> 的一部分,现在有一个 AWSSignInProvider 的完整示例实现在 swift 中。 .有一个<a href="https://github.com/BruceBuckland/SignIn-awsmhh" rel="noreferrer noopener nofollow">sample app that uses it here.</a> </p>

<p>有一个<a href="https://stackoverflow.com/questions/37260766/ios-aws-mobilehub-sign-in-with-developer-authenticated-provider/40268100#40268100" rel="noreferrer noopener nofollow">writeup that might be helpful to you here</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 您如何在 swift 中实现 AWS 开发人员身份验证?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/39950438/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/39950438/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 您如何在 swift 中实现 AWS 开发人员身份验证?