DataStore multi-auth is not working with mixed owner and public auth rules #2399
Labels
bug
Something isn't working
datastore
DataStore category/plugins
pending-release
Code has been merged but pending release
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
DataStore
Gradle script dependencies
// Put output below this line
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Original issue: aws-amplify/amplify-flutter#2527 | aws-amplify/amplify-flutter#1693
Related amplify-swift issue: aws-amplify/amplify-swift#2873
DataStore multi-auth is not working as expected.
Take schema
When configure DataStore to use multi-auth mode with NO authenticated session:
Expected Behavior
As a developer, I want my end users to have
read
access to Model A B and C, including receiving subscription events.Actual Behavior
What happened: with amplify-android, it attempted to create subscription for
UserProfile
, when there was no authenticated user session, the subscription failed, and put DataStore into theLOCAL_ONLY
mode. The should-be-allowed read operations on other models were not working. This make the multi-auth mode unusable.Reproduction steps (if applicable)
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: