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

fix(plugins/oauth2): OAuth2 token was being cached to nil while access to the wrong service first #10522

Merged

Conversation

vm-001
Copy link
Contributor

@vm-001 vm-001 commented Mar 20, 2023

Summary

The OAuth2 plugin caches a nil value for an access token on the condition of the token is valid but does not match the current service. If using this token to access the correct service later, Kong will always return 401 due to the cache issue.

Checklist

Issue reference

FTI-4922

@vm-001 vm-001 changed the title fix(plugin/oauth2): oauth2 token was being cached to nil while access to the wrong service first fix(plugins/oauth2): OAuth2 token was being cached to nil while access to the wrong service first Mar 20, 2023
@vm-001 vm-001 marked this pull request as ready for review March 20, 2023 07:12
@vm-001 vm-001 added this to the 3.3 milestone Mar 20, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
@windmgc windmgc merged commit 272d23e into master Apr 9, 2023
@windmgc windmgc deleted the fix/oauth2-token-being-cached-to-nil-while-service-not-match branch April 9, 2023 15:29
@hbagdi
Copy link
Member

hbagdi commented Apr 10, 2023

@vm-001 @windmgc Please take care of the EE cherrypick.

@vm-001
Copy link
Contributor Author

vm-001 commented Apr 19, 2023

@hbagdi Thanks for the ping. Checked, the community edition to enterprise edition merge process has included this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants