lea*_*er9 5 authentication redirect ios aws-amplify aws-amplify-cli
背景:我正在按照 AWS 教程使用 Amplify 创建 iOS 应用程序。步骤之一是使用“amplify add auth”并指定“重定向签名 URI”。由于某种原因,CLI 没有提示我输入 URL。“amplify update auth”不提供指定重定向 URL 的选项。
问题:执行“amplify add auth”命令后,如何将重定向 URL 添加到项目中?
我不知道你遇到什么问题,但你可以使用
amplify update auth
Run Code Online (Sandbox Code Playgroud)
如果你试试:
amplify add auth
Run Code Online (Sandbox Code Playgroud)
它会给你一个错误:
Auth 已添加到该项目中。要更新,请运行 amplify update auth。
使用 amplify update auth,系统会要求您提供 URI。
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
Run Code Online (Sandbox Code Playgroud)
如果您需要重新开始,请尝试:
amplify init
amplify pull auth
amplify remove auth
amplify add auth
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7557 次 |
| 最近记录: |