graphql-authorization | Handling authorization in GraphQL | GraphQL library
kandi X-RAY | graphql-authorization Summary
kandi X-RAY | graphql-authorization Summary
Handling authorization in GraphQL
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of graphql-authorization
graphql-authorization Key Features
graphql-authorization Examples and Code Snippets
Community Discussions
Trending Discussions on graphql-authorization
QUESTION
I'm trying to create a fully AppSync managed API.
I'm using a Custom Lambda Authorizer and I want to authenticate some mutation
s. I've read this very interesting post on nested resolvers and this stackoverflow post but I still can't find a solution to my problem.
So, I have a mutation
, say createReview
that should be solved by a DynamoDB resolver and I want my Custom Lambda Authorizer to both authorize and authenticate createReview
request.
How should this be organized?
I know I could either solve my createReview
request by using a Lambda
resolver, or that I could use AWS Cognito as Authorizer, but I'm trying to achieve right what I've asked.
Thank you for any advice
...ANSWER
Answered 2018-May-06 at 10:24The post I had linked was already giving enough information to solve the problem.
I was stubbornly hooked on the usage of mutation because I didn't have enough knowledge on GraphQL to know what makes it different from query.
Abandoning mutation and using query is enough to solve the problem.
So I have a
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install graphql-authorization
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page