Ask Your Question
0

What is the process for authenticating a query using OIDC by sending idToken to AppSync GraphQL?

asked 2021-06-22 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-05-21 17:00:00 +0000

djk gravatar image

The process for authenticating a query using OIDC by sending idToken to AppSync GraphQL involves the following steps:

  1. Configure OIDC authentication in AppSync and obtain the issuer URL and client ID.
  2. Generate an idToken for the user by authenticating with the OIDC provider.
  3. Add the idToken to the Authorization header of the query request, using the "Bearer" scheme.
  4. Send the query request to the AppSync GraphQL API endpoint.
  5. AppSync will validate the idToken with the OIDC provider and extract the user’s identity from the token.
  6. If the identity is authenticated and authorized to access the requested data, then the query is processed and the results are returned.
  7. If the identity is not authorized, then an error will be returned.

Overall, this process ensures that only authorized users can access protected GraphQL resources in the AppSync API.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-06-22 11:00:00 +0000

Seen: 17 times

Last updated: May 21 '21