Open chrisbonifacio opened 2 years ago
Hi @chrisbonifacio, Thank you for reporting this. I was able to replicate the behaviour in my Amplify application. In addition to the steps provided I observed the following in my replication.
amplify push
.amplify update auth
.amplify update auth
to correct my credentials. The CLI recognized the update on the auth resource.amplify push
amplify update auth
Observed that CLI did not recognize the updated credentials this time.
Marking this as bug.
Hey @ykethan, thanks for updating the issue. Just wanted to point out that this behavior (changes not being detected) is known to the CLI team, it's just not a great developer experience. The workaround is to manually change the hostedUIProviderCreds
attribute within the ~/.aws/amplify/deployment-secrets.json
file for the corresponding environment.
Besides that, the other issue with the Hosted UI still remains, where it renders properly only on the test url but not the regular one. Did you also see this behavior after pushing your auth resource and trying to access the Hosted UI? I just wasn't sure if it was related to my using a social provider or not. I tried with both Apple and Google, same issue. I can open a separate issue for that if need be.
Was able to replicate the same errors as mentioned by @chrisbonifacio. Running amplify status
and opening the Hosted UI Endpoint throws the same errors.
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
16.13.0
Amplify CLI Version
7.6.26
What operating system are you using?
Mac (M1)
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
auth, api
Amplify Commands
update
Describe the bug
When I try to update the credentials for my Apple OAuth Provider, the changes are not detected when checking resource status or attempting to push.
Another strange thing I observed is that after creation of the auth resource with my apple oauth provider configured, the Hosted UI doesn't render.
Links and Scripts in the Header contain
null
in parts of the CDN urlsHosted UI Endpoint
: https://remixamplified169d1d34-169d1d34-dev.auth.us-east-1.amazoncognito.com/Test Your Hosted UI Endpoint
: https://remixamplified169d1d34-169d1d34-dev.auth.us-east-1.amazoncognito.com/login?response_type=code&client_id=j72tq46t3ecn7ru5hh2osi9gm&redirect_uri=http://localhost:3000/Expected behavior
Changes to
hostedUIProviderCreds
should be detected onamplify push
and/oramplify status
Hosted UI Endpoint should load styles and scripts and render the login form properly
Reproduction steps
amplify init
amplify add auth
? Do you want to add another redirect signin URI No
Enter your redirect signout URI: http://localhost:3000/
? Do you want to add another redirect signout URI No
Select the social providers you want to configure for your user pool: Sign in with Apple
... input Sign In With Apple credentials (Service ID, Team ID, Private Key, etc)
Log output
Additional information
No response