Skip to content
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

amplify-appsync-simulator giving error in OpenIdConfig Issuer trailing '/' #6463

Closed
sarfraaz-talat opened this issue Jan 23, 2021 · 2 comments
Assignees
Labels
api-graphql Issues related to GraphQL resources in the API category bug Something isn't working pending-release Code has been merged but pending release

Comments

@sarfraaz-talat
Copy link

Getting the error when trying to connect through OpenIdConfig when my Issuer has trailing '/'

{"errors":[{"errorType":"UnauthorizedException","message":"UnauthorizedException: Invalid JWT token"}]}

Digging into the code,just found out isValidOIDCToken function inside helpers is stripping the trailing '/' from the issuer & then matching it against token.iss

Same config with trailing '/' works just fine with my production AppSync deployment on aws

@sarfraaz-talat sarfraaz-talat changed the title amplify-appsync-simulator giving error in OpenIfConfig Issuer trailing '/' amplify-appsync-simulator giving error in OpenIdConfig Issuer trailing '/' Jan 23, 2021
@ammarkarachi ammarkarachi added api-graphql Issues related to GraphQL resources in the API category pending-triage Issue is pending triage labels Jan 26, 2021
@jhockett jhockett added bug Something isn't working and removed pending-triage Issue is pending triage labels Feb 1, 2021
@yuth
Copy link
Contributor

yuth commented Feb 5, 2021

@sarfraaz-talat Thanks for reporting this. This issue has been fixed in #6364. The change should be included in a release after 4.41.2.

@yuth yuth closed this as completed Feb 5, 2021
@yuth yuth added the pending-release Code has been merged but pending release label Feb 5, 2021
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api-graphql Issues related to GraphQL resources in the API category bug Something isn't working pending-release Code has been merged but pending release
Projects
None yet
Development

No branches or pull requests

4 participants