Auth check fix (#11649)

This commit is contained in:
hth 2024-01-17 16:07:55 +08:00 committed by GitHub
parent 07168099db
commit 51fa941df7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ public class AuthConfigs extends Subscriber<ServerConfigChangeEvent> {
*/
@PostConstruct
public void validate() throws NacosException {
if (!authEnabled) {
if (!authEnabled || EnvUtil.getStandaloneMode()) {
return;
}
if (StringUtils.isEmpty(nacosAuthSystemType)) {