-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL API should send idToken to AppSync instead of accessToken #464
Comments
Hi @ffxsam thank you for raising this issue. I'm going to mark and track this as a feature request because it's a suggestion to change the current behavior. Linking to related issue regarding SSR: aws-amplify/amplify-js#7824 |
@chrisbonifacio Thank you! |
@chrisbonifacio @ffxsam I have requested this a couple of years ago and I received an email last in 2023 ( I believe) that Cognito now supports extra security features which allow you to enhance the accesstokens and add extra data. This was in response to my request. |
That's correct! It is an additional cost but it is now possible to customize the access token to include the same custom attributes, or claims, as the id token. @ffxsam does this feature fit your use case for having the custom attributes in the resolver's |
@chrisbonifacio I didn't know it came with an extra cost, I thought expanding the accessTokens was a part of the free package. |
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
GraphQL API
Amplify Categories
auth, api
Environment information
Describe the bug
When a user is logged in and making GraphQL requests, their custom attributes from Cognito don't exist in the
identity
object on the resolver side.Expected behavior
I would expect custom attributes to be in the claims.
Reproduction steps
Set up GraphQL API and make a request (authenticated)
Code Snippet
Workaround:
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: