aws / aws/aws-appsync-community
OIDC not working in Appsync
- 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
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