diff --git a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java index 16af3d04811..facb0d4d8a7 100644 --- a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java +++ b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/JaspiAuthenticatorFactory.java @@ -97,7 +97,7 @@ public class JaspiAuthenticatorFactory extends DefaultAuthenticatorFactory RegistrationListener listener = (layer, appContext) -> {}; Subject serviceSubject=findServiceSubject(server); - String serverName=findServerName(server); + String serverName=findServerName(server, serviceSubject); String contextPath=context.getContextPath(); if (contextPath==null || contextPath.length()==0)