I have a Graphql API
in aws-appsync
, and I want to use the same path of said API to allow my users to log in and sign in using the aws-cognito
service using jwt
Bellow a diagram of what I am trying to achieve
Is there any way to use aws-cognito
in such way? how ? can you give me a quick brief on how to do what i am trying to achieve?
This is not possible at this point. AppSync GraphQL endpoints are of the type:
<unique-id>.appsync-api.<region>.amazonaws.com/graphql
and these serve just the GraphQL requests.
Cognito operations (outside the OAuth flows) for signing, login etc are served from
cognito-idp.<region>.amazonaws.com
So both domains are amazonaws.com but different subdomains.