Skip to content

Commit

Permalink
Fix dynamic change token to illegal value will use old token.
Browse files Browse the repository at this point in the history
  • Loading branch information
KomachiSion committed Apr 11, 2023
1 parent 50d313b commit d2e16a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private void processProperties() {
try {
this.jwtParser = new NacosJwtParser(encodedSecretKey);
} catch (Exception e) {
this.jwtParser = null;
if (authConfigs.isAuthEnabled()) {
throw new IllegalArgumentException(
"the length of secret key must great than or equal 32 bytes; And the secret key must be encoded by base64."
Expand Down

0 comments on commit d2e16a3

Please sign in to comment.