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

auth headless is missing the following inputParameters googleAppIdUserPool, googleAppSecretUserPool #13499

Closed
redjonzaci opened this issue Dec 21, 2023 · 8 comments
Labels
investigating This issue is being investigated pending-triage Issue is pending triage question General question

Comments

@redjonzaci
Copy link
Contributor

Amplify CLI Version

12.3.0

Question

I went through the following issue: #9176 and the following docs: https://docs.amplify.aws/javascript/tools/cli/usage/headless/#headless-category-payloads,
but I don't understand how to utilize amplify update auth --headless in the CI/CD pipeline.
Currently, we just do amplifyPush --simple to build the backend. Where does that fit in?

@redjonzaci redjonzaci added pending-triage Issue is pending triage question General question labels Dec 21, 2023
@ykethan
Copy link
Member

ykethan commented Dec 21, 2023

Hey @redjonzaci, thank you for reaching out. Could you try adding the OAuth parameters as environment variables and rebuild on Amplify hosting , AMPLIFY_GOOGLE_CLIENT_ID, AMPLIFY_GOOGLE_CLIENT_SECRET environment variables are accessible by default within the Amplify console.
Please refer to the documentation
similar issue: aws-amplify/amplify-hosting#2039 (comment)

@ykethan ykethan added the pending-response Issue is pending response from the issue author label Dec 21, 2023
@redjonzaci
Copy link
Contributor Author

Trying it now, but it seems like the repeated issue needs a documentation / error message update?

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Dec 21, 2023
@redjonzaci
Copy link
Contributor Author

@ykethan it worked, thank you!

@ykethan
Copy link
Member

ykethan commented Dec 21, 2023

@redjonzaci glad to hear that, i am working on a reproduction for this behavior.

Note: #11010: Tried reproducing using the steps on this issue but was not able to reproduce the issue.

@ykethan ykethan added the investigating This issue is being investigated label Dec 21, 2023
@redjonzaci
Copy link
Contributor Author

We had an existing app and then did amplify update auth. On next PR, we got the error.

@ykethan
Copy link
Member

ykethan commented Dec 22, 2023

On diving deeper it appears the amplifyPush --simple runs a headless pull and init push without the auth config. adding the client config as environment variables should add the auth config on the push.

Closing the issue.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
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.

@danny33118
Copy link

Problem :
auth headless is missing the following inputParameters googleAppIdUserPool, googleAppSecretUserPool...

Solution:
amplify pull --appId d2w68xxxxxxxxx --envName dev
(get the appid from your amplify backend)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating This issue is being investigated pending-triage Issue is pending triage question General question
Projects
None yet
Development

No branches or pull requests

3 participants