使用Amplify将现有的AWS Cognito用户池集成到iOS项目中

使用Amplify将现有的AWS Cognito用户池集成到iOS项目中

问题描述:

我正尝试使用 AWS Cognito 添加到我的iOS应用程序中://aws-amplify.github.io"rel =" noreferrer> AWS放大.文档建议在CLI上使用 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.