You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
HostedUI configuration is loaded from SharedPreferences even when awsconfiguration.json is updated more recently. This can manifest in a verification error on one of the initialization fields, even after changing the config file.
To Reproduce
Set up app with Hosted UI.
Set a breakpoint on _showSignIn in AWSMobileClient.java, run the app and note that it uses the proper configuration blob.
Update the awsconfiguration.json (and amplifyconfiguration.json -- you can run grep to make sure that there is no possible other source of backups), changing the WebDomain, for example.
Re-run the app and note that the blob has not updated.
Delete the virtual device and create a new one.
Re-run the app and note that the blob has updated.
Which AWS service(s) are affected?
After looking through AWSMobileClient.java (search for mStore.get), it looks like the issue is just with Hosted UI.
Expected behavior
Hosted UI should load the proper configuration from awsconfiguration.json and trust it over the SharedPreferences configuration. I expect that this will just be a reordering of getHostedUIJSON(awsConfig).
The text was updated successfully, but these errors were encountered:
Describe the bug
HostedUI configuration is loaded from SharedPreferences even when
awsconfiguration.json
is updated more recently. This can manifest in a verification error on one of the initialization fields, even after changing the config file.To Reproduce
_showSignIn
inAWSMobileClient.java
, run the app and note that it uses the proper configuration blob.awsconfiguration.json
(andamplifyconfiguration.json
-- you can rungrep
to make sure that there is no possible other source of backups), changing theWebDomain
, for example.Which AWS service(s) are affected?
After looking through
AWSMobileClient.java
(search formStore.get
), it looks like the issue is just with Hosted UI.Expected behavior
Hosted UI should load the proper configuration from
awsconfiguration.json
and trust it over the SharedPreferences configuration. I expect that this will just be a reordering ofgetHostedUIJSON(awsConfig)
.The text was updated successfully, but these errors were encountered: