-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[ISSUE #12719] refresh the client's access token #12758
Conversation
update version to 1.3.0
Upgrade to 1.3.1 version
Upgrade to 1.3.2
Master upgrade 1.4.0
This reverts commit b9a842c.
Upgrade to 1.4.1
Merge develop to master, upgrade version to 1.4.2
Upgrade to 2.0.2
Upgrade to 2.0.3
Release 2.0.4
Upgrade to 2.1.0
Upgrade 2.1.1
Upgrade to 2.1.2
Merge develop into master to release 2.2.0
Merge from develop.
2.3.0-BETA release
Upgrade to 2.3.0
Archive to master branch
Merge 2.4.0 to master
Release 2.4.2
Upgrade to 2.4.3
|
Thanks for your this PR. 🙏 感谢您提交的PR。 🙏 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #12758 +/- ##
=============================================
+ Coverage 71.29% 71.30% +0.01%
- Complexity 9660 9666 +6
=============================================
Files 1278 1278
Lines 41080 41098 +18
Branches 4345 4350 +5
=============================================
+ Hits 29286 29304 +18
+ Misses 9732 9730 -2
- Partials 2062 2064 +2
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Please do not create a Pull Request without creating an issue first.
What is the purpose of the change
from issues 12719
Brief changelog
Modify the login logic in the NacosClientAuthServiceImpl code to record the refresh time of the token in the 'LoginIdentity Context'.
When the response code is determined to be 403 on the client side, set the parameter 'NextRefreshTime' in 'Login Identity Context' to 0.
After waiting for the timer task for 5 seconds, enter the login process and refresh the token.
LoginIdentityContext
中。LoginIdentityContext
里面的参数nextRefreshTime
设置为 0。Verifying this change
Modify the
nacos.cre.auth.plugin.nacos.token.secreet.key
parameter in the application and observe whether the client performs a re login operation