首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >AWS放大添加auth:如何在执行扩容cli后添加重定向签名URI

AWS放大添加auth:如何在执行扩容cli后添加重定向签名URI
EN

Stack Overflow用户
提问于 2021-02-07 16:16:10
回答 1查看 4.9K关注 0票数 4

上下文:我遵循一个AWS教程创建了使用iOS的应用程序。其中一个步骤是使用‘扩容,添加,auth’并指定‘重定向签名URI’。由于某些原因,CLI没有提示我输入URL。“扩容更新auth”没有提供指定重定向URL的选项。

问:如何在执行“扩容添加auth”命令后,向项目添加重定向URL?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-09 23:42:43

我不知道你有什么问题,但你可以用

代码语言:javascript
运行
复制
amplify update auth

如果你尝试:

代码语言:javascript
运行
复制
amplify add auth

它会给你一个错误:

奥斯已经加入到这个项目中。若要更新、运行、放大、更新。

使用扩容更新auth,您将被要求提供URI。

代码语言:javascript
运行
复制
Please note that certain attributes may not be overwritten if you choose to use defaults settings.

You have configured resources that might depend on this Cognito resource.  Updating this Cognito resource could have unintended side effects.

Using service: Cognito, provided by: awscloudformation
 What do you want to do? (Use arrow keys)
 What do you want to do? Apply default configuration with Social Provider (Federation)
 What domain name prefix do you want to use? myprojd2553e50-d2553e50
 Enter your redirect signin URI: myapp://callback/
? Do you want to add another redirect signin URI No
 Enter your redirect signout URI: myapp://signout/
? Do you want to add another redirect signout URI No
 Select the identity providers you want to configure for your user pool: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>( ) Facebook
 ( ) Google
 ( ) Login With Amazon

如果您需要重新开始,请尝试:

代码语言:javascript
运行
复制
amplify init
amplify pull auth
amplify remove auth
amplify add auth
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66090121

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档