Skip to content

Commit 4862b42

Browse files
author
Domonkos Gulyas
committed
Correct demo auth config
1 parent d128c30 commit 4862b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/phoebus/channelfinder/configuration/WebSecurityConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)
196196

197197
Environment environment = context.getEnvironment();
198198

199-
Boolean isEmbeddedLdapEnabled =
200-
environment.getProperty("embedded_ldap.enabled", Boolean.class, false);
199+
Boolean isDemoAuthEnabled =
200+
environment.getProperty("demo_auth.enabled", Boolean.class, false);
201201
String[] demoAuthPwds = environment.getProperty("demo_auth.pwds", String[].class);
202202
String[] demoAuthRoles = environment.getProperty("demo_auth.roles", String[].class);
203203
String[] demoAuthUsers = environment.getProperty("demo_auth.users", String[].class);
204204

205-
return isEmbeddedLdapEnabled
205+
return isDemoAuthEnabled
206206
&& !ArrayUtils.isEmpty(demoAuthUsers)
207207
&& !ArrayUtils.isEmpty(demoAuthPwds)
208208
&& !ArrayUtils.isEmpty(demoAuthRoles)

0 commit comments

Comments
 (0)