VTL resolver to authenticate multiple users from two different cognito pools
I need I have two cognito pools One is for uber rider One is for uber driver
now when I query from my rider side I need rider authentication from his pool on rides table and when I need to query from drivers side I need driver credentials for authentication from his pool to get data from rides table.
but with code gen amplify it self generate the VTL. but my problem is to write it by myself as I am not using amplify.
You can make all the changes to the GraphQL Schema or the template mapping of the resolvers in the AppSync Console, and you don't need to use Amplify for it.
Here is a link to AppSync documentation on the way to authorize different users to do different queries or mutations. It covers similar use cases to the one that you defined.
Thank you. this is helpful, I will study, apply and will let you know. Do you have any tutorial regarding VTL writing for resolvers. as I could not find that anywhere and paid courses are expensive. There are tutorials for VTL on apache site but I need more accurate and with respect to AWS appsycn resolvers.
How Amplify PubSub granted access to AWS IoT Core?Accepted Answerasked 14 days ago
How to efficiently retrieve tokens from Cognito while using amplify with react-native ?asked 4 months ago
Cognito Domain name Private Access to URLasked 2 months ago
ALB Authenticate Rule with Cognito error: OAuth flows must be enabled in the user pool clientAccepted Answerasked 3 months ago
Cognito - User Asked to Login to App Constantlyasked a month ago
trouble getting userinfo from id_token in Cognitoasked 4 months ago
Amazon Cognito user pool LOGOUT endpoint is not working as expectedAccepted Answerasked 5 months ago
VTL resolver to authenticate multiple users from two different cognito poolsasked 25 days ago
Move Cognito user pool to another account?asked a month ago
Cognito/SES giving error that Email is not verified despite being verifiedasked 3 months ago