I am working on an Amplify application with AppSync GraphQL as API.
I am trying to have 2 separate user pools that can be used as authentication sources for this GraphQL API.
Following the Amplify tutorial, I was able to deploy the AppSync GraphQL API, but there is no option for me to configure multiple user pools.
I looked into the AWS Console and saw that I can add more User Pools under "Additional authorization providers", but when I did then tried it out in Query section, only the first User Pool works. The API responded with
"message": "Not Authorized to access listTodos on type Query"
Here is my schema:
type Todo @model {
id: ID!
name: String!
description: String
}
I also tried to add the second User Pools as Authentication Provider for the Identity Pool generated by Amplify, no luck as well.
Is it possible to use 2 User Pools in a single AppSync API? What am I missing here?
Thanks.