Skip to content

Commit d8287b8

Browse files
committed
Add missing ConditionalOnProperty
1 parent 15061f4 commit d8287b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/eu/openanalytics/containerproxy/auth/impl/KeycloakAuthenticationBackend.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ protected SessionAuthenticationStrategy sessionAuthenticationStrategy() {
173173
}
174174

175175
@Bean
176+
@ConditionalOnProperty(name="proxy.authentication", havingValue="keycloak")
176177
public KeycloakAuthenticationFailureHandler keycloakAuthenticationFailureHandler() {
177178
return new AuthenticationFaillureHandler();
178179
}

0 commit comments

Comments
 (0)