Skip to content

Commit 2eed4f5

Browse files
committed
- fix config
1 parent fb04419 commit 2eed4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springboot/starters/kogito-processes-spring-boot-starter/src/main/java/org/kie/kogito/spring/auth/SpringIdentityProviderFactoryProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class SpringIdentityProviderFactoryProducer {
3636
@Bean
3737
public IdentityProviderFactory produce(IdentityProvider identityProvider,
3838
@Value("${" + IdentityProviderFactory.KOGITO_SECURITY_AUTH_ENABLED + ":false}") boolean enabled,
39-
@Value("${" + IdentityProviderFactory.KOGITO_SECURITY_AUTH_IMPERSONATION_ALLOWED_FOR_ROLES + "}") Optional<String> configRolesThatAllowImpersonation) {
39+
@Value("${" + IdentityProviderFactory.KOGITO_SECURITY_AUTH_IMPERSONATION_ALLOWED_FOR_ROLES + ":#{null}}") Optional<String> configRolesThatAllowImpersonation) {
4040
String[] rolesThatAllowImpersonation = configRolesThatAllowImpersonation.map(roles -> roles.split(",")).orElse(new String[] {});
4141
return new IdentityProviderFactoryImpl(identityProvider, new KogitoAuthConfig(enabled, List.of(rolesThatAllowImpersonation)));
4242
}

0 commit comments

Comments
 (0)