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

unable to retrieve CLI login key after logging into Studio during amplify pull #700

Closed
3 tasks done
josefaidt opened this issue Oct 14, 2022 · 3 comments
Closed
3 tasks done
Labels
bug An issue which has been identified as a bug login issues when logging into studio studio-backend An issue that needs to be tracked by Studio Backend team

Comments

@josefaidt
Copy link
Contributor

Before opening, please confirm:

App Id

d22pehuho9lavh

Region

us-east-1

Environment name

dev

Figma File Version (if applicable)

n/a

Amplify CLI Version

10.2.3

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

18

What operating system are you using?

mac

Browser type?

Google Chrome

Describe the bug

Upon executing provided pull command amplify pull --appId ... I am prompted to log in to Studio. After choosing to login with AWS credentials I am redirected and successfully logged in, however I am not presented with the CLI login key. From here I have to cancel out of the CLI pull flow, delete the artifacts, and re-attempt the pull.

Expected behavior

either/or

  • after redirect I am automatically authenticated with the CLI
  • after redirect I am presented with the CLI login key

Reproduction steps

  1. create an Amplify project in the Amplify Hosting console
  2. enable Studio
  3. copy the pull command and run locally
  4. observe Studio is opened and we are prompted to log in
  5. login with AWS credentials
  6. observe after redirect we are not presented with login key

Project Identifier

No response

Additional information

No response

@murali-j-99 murali-j-99 added login issues when logging into studio bug An issue which has been identified as a bug studio-backend An issue that needs to be tracked by Studio Backend team labels Oct 17, 2022
@ykethan
Copy link
Member

ykethan commented Dec 6, 2022

Was able to reproduce this, login with credentials when not logged into studio a app causes this behaviour. The issue appears to be with not redirecting from a Studio login page to an allow CLI page.
As a mitigation step, once logged/logging in to studio we exit the pull prompt and rerun the pull command.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@murali-j-99
Copy link

This issue has been resolved. Please reopen the issue if you still encounter any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue which has been identified as a bug login issues when logging into studio studio-backend An issue that needs to be tracked by Studio Backend team
Projects
None yet
Development

No branches or pull requests

3 participants