aws-amplify / aws-amplify/amplify-cli
Can't update credentials for Sign In With Apple and Hosted UI doesn't render properly
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
### 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 urls
Hosted 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 on `amplify push` and/or `amplify status`
Hosted UI Endpoint should load styles and scripts and render the login form properly
### Reproduction steps
1. `amplify init`
2. `amplify add auth`
3.
```Do you want to use the default authentication and security configuration? Default configuration with Social Provider (Federation)
Warning: you will not be able to edit these selections.
How do you want users to be able to sign in? Email
Do you want to configure advanced settings? No, I am done.
What domain name prefix do you want to use? remixamplified169d1d34-169d1d34
Enter your redirect signin URI: http://localhost:3000/
? 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)
```
4. `amplify push -y`
5. `amplify update auth`
6. "Update OAuth social providers"
7. update any credentials
8. `amplify push -y`
9. "No changes detected"
### GraphQL schema(s)
```graphql
# Put schemas below this line
```
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.