safer method to retrieve the webcontext for jetty
This commit is contained in:
parent
00b832b1cd
commit
a011f44d39
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ public class KeycloakSpringBootConfiguration {
|
|||
}
|
||||
}
|
||||
|
||||
WebAppContext webAppContext = server.getBean(WebAppContext.class);
|
||||
WebAppContext webAppContext = (WebAppContext) server.getHandler();
|
||||
|
||||
ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();
|
||||
securityHandler.setConstraintMappings(jettyConstraintMappings);
|
||||
|
|
Loading…
Reference in a new issue