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:
parent
f3df185bb5
commit
859c5cbe1e
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ public class KeycloakSpringBootConfiguration {
|
|||
securityHandler.setConstraintMappings(jettyConstraintMappings);
|
||||
securityHandler.setAuthenticator(keycloakJettyAuthenticator);
|
||||
|
||||
webAppContext.insertHandler(securityHandler);
|
||||
webAppContext.setSecurityHandler(securityHandler);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue