Skip to content

Commit

Permalink
Fix empty token can start up problem. (#12816)
Browse files Browse the repository at this point in the history
  • Loading branch information
KomachiSion authored Nov 4, 2024
1 parent 635e3d8 commit 663a718
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void processProperties() {
this.jwtParser = new NacosJwtParser(encodedSecretKey);
} catch (Exception e) {
this.jwtParser = null;
if (authConfigs.isAuthEnabled()) {
if (authConfigs.isAuthEnabled() || authConfigs.isConsoleAuthEnabled()) {
throw new IllegalArgumentException(
"the length of secret key must great than or equal 32 bytes; And the secret key must be encoded by base64."
+ "Please see https://nacos.io/zh-cn/docs/v2/guide/user/auth.html", e);
Expand Down

0 comments on commit 663a718

Please sign in to comment.