Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import auth - after choosing the same web & native client to import, unable to reselect different clients #7949

Closed
4 tasks done
josefaidt opened this issue Aug 12, 2021 · 2 comments · Fixed by #7954
Closed
4 tasks done
Assignees
Labels
bug Something isn't working import Issues related to importing resources into an Amplify project

Comments

@josefaidt
Copy link
Contributor

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?

yarn

If applicable, what version of Node.js are you using?

v16.5.0

Amplify CLI Version

v5.3.0

What operating system are you using?

Mac

Amplify Categories

auth

Amplify Commands

Not applicable

Describe the bug

When running amplify import auth and choosing the same client to import for Web and Native, the CLI prompts it is recommended to use different app clients... do you want to change this?. If we choose yes to change our selections it the CLI will continuously prompt us for Web and Native client choices until we select the same clients for both again.

Expected behavior

We are allowed to select different app clients after choosing to change selections

Reproduction steps

  1. amplify import auth
  2. Choose either Cognito User Pool only or with Identity Pool
  3. Select an existing resource
  4. Select the same app client for both Web & Native
  5. Select "y" electing to change app client choices
  6. Attempt to select different app clients for both Web & Native
  7. Observe continuous prompts
> amplify import auth
Using service: Cognito, provided by: awscloudformation
✔ What type of auth resource do you want to import? · Cognito User Pool only
✔ Select the User Pool you want to import: · us-east-1_BCimL25rm
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClientWeb
? It is recommended to use different app clients for web and native application, You have chosen the same app client for both. Do you want to change this? Yes
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClientWeb
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
The User Pool has multiple Web app clients configured.
✔ Select a Web client to import: · myAppClient
The User Pool has multiple Native app clients configured.
✔ Select a Native client to import: · myAppClient
? It is recommended to use different app clients for web and native application, You have chosen the same app client for both. Do you want to change this? No

✅ Cognito User Pool 'socialsignin392b6b4f_userpool_392b6b4f-staging' was successfully imported.

GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line


Additional information

This occurred regardless of auth type chosen and resource configuration

@josefaidt josefaidt added import Issues related to importing resources into an Amplify project pending-triage Issue is pending triage labels Aug 12, 2021
@sundersc
Copy link
Contributor

I can confirm that this is a bug.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working import Issues related to importing resources into an Amplify project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants