使用Amplify将现有的AWS Cognito用户池集成到iOS项目中 [英] Integrate existing AWS Cognito user pool into iOS project with Amplify
问题描述
我正尝试使用 amplify add auth
,但这似乎不适用于现有的 User Pool (即,您必须创建一个新的).是否可以使用现有的 User Pool 将AWS Cognito集成到我的iOS(Swift)项目中?
I am trying to add AWS Cognito to my iOS application using AWS Amplify. The docs suggest to use amplify add auth
on the CLI, but this does not seem to work with an existing User Pool (i.e. you have to create a new one). Is it possible to integrate AWS Cognito into my iOS (Swift) project using an existing User Pool?
推荐答案
Amplify CLI目前不支持现有资源,但是您可以手动编辑 awsconfiguration.json
以包括用于以下内容的用户池已经以此处概述的形式出现.
Amplify CLI doesn't support existing resources at the moment but you can manually edit your awsconfiguration.json
to include the User Pool that is already present as outlined here.
这篇关于使用Amplify将现有的AWS Cognito用户池集成到iOS项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!