GraphQL query fails when using AWS Lambda as a secondary authorization mode #8712
Closed
3 tasks done
Labels
GraphQL
Related to GraphQL API issues
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, GraphQL API
Amplify Categories
auth, api
Environment information
Describe the bug
Seeing the recent announcement about a lambda authorization mode in AppSync. And the recently merged PR , we wanted to try this solution for executing custom role permission logic.
However, using the lambda authorization method I get the following response when trying to execute any query.
If this feature is not yet supported I guess this bug report should become a feature request.
Expected behavior
I receive a response with all of the requested object data. Like so:
Reproduction steps
amplify function add
index.js
file to the followingamplify push
@aws_lambda
directive to the schema object that will be queried with lambda authorizationamplify push
againaws-exports.js
file note that the default authorization mode isAMAZON_COGNITO_USER_POOLS
Code Snippet
All snippets in reproduction steps
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: