aws / aws/aws-appsync-community

OIDC not working in Appsync

Open
#246 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

I am using OIDC authmode to connect to my AppSync and I am trying to connect using this code:

` const todoData = await API.graphql({
query: listRooms,
variables: {},
authMode: 'OPENID_CONNECT',
authToken: 'MyToken',
});`

But I am getting the following error=> Error: No current user

The token that I am suing works fine testing from the appsync query console.

Contributor guide

Open the contributing guide

Research direction

Start with the API.graphql call shown in the issue and compare its OPENID_CONNECT authMode and authToken handling with the same token in the AppSync query console. Reproduce the No current user error, then identify the missing configuration or request detail and verify that the listRooms query succeeds through the client.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql, javascript
Domain
api, authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.