KEYCLOAK-3807: Use 'setSecurityHandler';

'insertHandler' is a method introduced in Jetty 9, Jetty 8 should
however be supported so 'setSecurityHandler' does the same thing but
works for both 8.x and 9.x;
This commit is contained in:
Bas Dalenoord 2016-10-25 13:59:07 +02:00
parent f3df185bb5
commit 859c5cbe1e

View file

@ -215,7 +215,7 @@ public class KeycloakSpringBootConfiguration {
securityHandler.setConstraintMappings(jettyConstraintMappings);
securityHandler.setAuthenticator(keycloakJettyAuthenticator);
webAppContext.insertHandler(securityHandler);
webAppContext.setSecurityHandler(securityHandler);
}
}