Integrate existing AWS Cognito user pool into iOS project with Amplify

六眼飞鱼酱① 提交于 2020-12-30 06:22:08

问题


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?


回答1:


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.




回答2:


Update: Since 2020 Amplify allows you to use existing User Pools (yeah!). Just run:

amplify import auth

Source: https://aws.amazon.com/de/about-aws/whats-new/2020/10/use-existing-cognito-user-pools-identity-pools-for-amplify-project/



来源:https://stackoverflow.com/questions/53314155/integrate-existing-aws-cognito-user-pool-into-ios-project-with-amplify

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!