diff --git a/adapters/oidc/jetty/jetty-core/pom.xml b/adapters/oidc/jetty/jetty-core/pom.xml
index f9dbdada96..669fd95e10 100755
--- a/adapters/oidc/jetty/jetty-core/pom.xml
+++ b/adapters/oidc/jetty/jetty-core/pom.xml
@@ -88,21 +88,21 @@
org.eclipse.jetty
jetty-server
- ${jetty92.version}
+ ${jetty94.version}
provided
org.eclipse.jetty
jetty-util
- ${jetty92.version}
+ ${jetty94.version}
provided
org.eclipse.jetty
jetty-security
- ${jetty92.version}
+ ${jetty94.version}
provided
diff --git a/adapters/oidc/jetty/jetty-core/src/main/java/org/keycloak/adapters/jetty/core/AbstractKeycloakJettyAuthenticator.java b/adapters/oidc/jetty/jetty-core/src/main/java/org/keycloak/adapters/jetty/core/AbstractKeycloakJettyAuthenticator.java
index 8cfa7be303..a66252d1ab 100755
--- a/adapters/oidc/jetty/jetty-core/src/main/java/org/keycloak/adapters/jetty/core/AbstractKeycloakJettyAuthenticator.java
+++ b/adapters/oidc/jetty/jetty-core/src/main/java/org/keycloak/adapters/jetty/core/AbstractKeycloakJettyAuthenticator.java
@@ -143,7 +143,7 @@ public abstract class AbstractKeycloakJettyAuthenticator extends LoginAuthentica
}
@Override
- public UserIdentity login(String username, Object credentials) {
+ public UserIdentity login(String username, Object credentials, ServletRequest var3) {
return null;
}
diff --git a/adapters/oidc/jetty/jetty9.2/pom.xml b/adapters/oidc/jetty/jetty9.2/pom.xml
deleted file mode 100755
index 08735a2b74..0000000000
--- a/adapters/oidc/jetty/jetty9.2/pom.xml
+++ /dev/null
@@ -1,147 +0,0 @@
-
-
-
-
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../../pom.xml
-
- 4.0.0
-
- keycloak-jetty92-adapter
- Keycloak Jetty 9.2.x Integration
-
- 1.8
- 1.8
-
- org.keycloak.adapters.jetty.*
-
-
- org.eclipse.jetty.*;resolution:=optional,
- javax.servlet.*;version="[3.0,4)";resolution:=optional,
- org.keycloak.*;version="${project.version}",
- *;resolution:=optional
-
-
-
-
-
-
- org.jboss.logging
- jboss-logging
-
-
- org.keycloak
- keycloak-core
-
-
- org.keycloak
- keycloak-adapter-core
-
-
- org.keycloak
- keycloak-jetty-core
-
-
- org.apache.httpcomponents
- httpclient
-
-
- org.bouncycastle
- bcprov-jdk15on
-
-
- com.fasterxml.jackson.core
- jackson-core
-
-
- com.fasterxml.jackson.core
- jackson-databind
-
-
- com.fasterxml.jackson.core
- jackson-annotations
-
-
- org.eclipse.jetty
- jetty-server
- ${jetty92.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-util
- ${jetty92.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-security
- ${jetty92.version}
- provided
-
-
-
- junit
- junit
- test
-
-
-
-
-
-
- maven-jar-plugin
-
-
- ${project.build.outputDirectory}/META-INF/MANIFEST.MF
-
-
-
-
- org.apache.felix
- maven-bundle-plugin
- true
-
-
- bundle-manifest
- process-classes
-
- manifest
-
-
-
-
-
- .
- ${project.name}
- ${project.groupId}.${project.artifactId}
- ${keycloak.osgi.import}
- ${keycloak.osgi.export}
-
-
-
-
-
-
-
diff --git a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/Jetty92RequestAuthenticator.java b/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/Jetty92RequestAuthenticator.java
deleted file mode 100755
index f6f5ad0453..0000000000
--- a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/Jetty92RequestAuthenticator.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.server.Request;
-import org.keycloak.adapters.AdapterTokenStore;
-import org.keycloak.adapters.KeycloakDeployment;
-import org.keycloak.adapters.jetty.core.JettyRequestAuthenticator;
-import org.keycloak.adapters.spi.HttpFacade;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty92RequestAuthenticator extends JettyRequestAuthenticator {
- public Jetty92RequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, AdapterTokenStore tokenStore, int sslRedirectPort, Request request) {
- super(facade, deployment, tokenStore, sslRedirectPort, request);
- }
-
- @Override
- protected String changeHttpSessionId(boolean create) {
- Request request = this.request;
- HttpSession session = request.getSession(false);
- if (session == null) {
- return request.getSession(true).getId();
- }
- if (!deployment.isTurnOffChangeSessionIdOnLogin()) return request.changeSessionId();
- else return session.getId();
- }
-}
diff --git a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/Jetty92SessionManager.java b/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/Jetty92SessionManager.java
deleted file mode 100755
index 455e06ab2e..0000000000
--- a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/Jetty92SessionManager.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.server.SessionManager;
-import org.keycloak.adapters.jetty.spi.JettySessionManager;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty92SessionManager implements JettySessionManager {
- protected SessionManager sessionManager;
-
- public Jetty92SessionManager(SessionManager sessionManager) {
- this.sessionManager = sessionManager;
- }
-
- @Override
- public HttpSession getHttpSession(String id) {
- return sessionManager.getHttpSession(id);
- }
-}
diff --git a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/JettyAdapterSessionStore.java b/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/JettyAdapterSessionStore.java
deleted file mode 100755
index 35e6683460..0000000000
--- a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/JettyAdapterSessionStore.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.http.HttpMethod;
-import org.eclipse.jetty.security.authentication.FormAuthenticator;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.util.MultiMap;
-import org.keycloak.adapters.jetty.spi.JettyHttpFacade;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.common.util.MultivaluedHashMap;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class JettyAdapterSessionStore implements AdapterSessionStore {
- public static final String CACHED_FORM_PARAMETERS = "__CACHED_FORM_PARAMETERS";
- protected Request myRequest;
-
- public JettyAdapterSessionStore(Request request) {
- this.myRequest = request; // for IDE/compilation purposes
- }
-
- protected MultiMap extractFormParameters(Request base_request) {
- MultiMap formParameters = new MultiMap();
- base_request.extractFormParameters(formParameters);
- return formParameters;
- }
- protected void restoreFormParameters(MultiMap j_post, Request base_request) {
- base_request.setContentParameters(j_post);
- }
-
- public boolean restoreRequest() {
- HttpSession session = myRequest.getSession(false);
- if (session == null) return false;
- synchronized (session) {
- String j_uri = (String) session.getAttribute(FormAuthenticator.__J_URI);
- if (j_uri != null) {
- // check if the request is for the same url as the original and restore
- // params if it was a post
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- if (j_uri.equals(buf.toString())) {
- String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
- myRequest.setMethod(HttpMethod.valueOf(method.toUpperCase()), method);
- MultivaluedHashMap j_post = (MultivaluedHashMap) session.getAttribute(CACHED_FORM_PARAMETERS);
- if (j_post != null) {
- myRequest.setContentType("application/x-www-form-urlencoded");
- MultiMap map = new MultiMap();
- for (String key : j_post.keySet()) {
- for (String val : j_post.getList(key)) {
- map.add(key, val);
- }
- }
- restoreFormParameters(map, myRequest);
- }
- session.removeAttribute(FormAuthenticator.__J_URI);
- session.removeAttribute(JettyHttpFacade.__J_METHOD);
- session.removeAttribute(FormAuthenticator.__J_POST);
- }
- return true;
- }
- }
- return false;
- }
-
- public void saveRequest() {
- // remember the current URI
- HttpSession session = myRequest.getSession();
- synchronized (session) {
- // But only if it is not set already, or we save every uri that leads to a login form redirect
- if (session.getAttribute(FormAuthenticator.__J_URI) == null) {
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- session.setAttribute(FormAuthenticator.__J_URI, buf.toString());
- session.setAttribute(JettyHttpFacade.__J_METHOD, myRequest.getMethod());
-
- if ("application/x-www-form-urlencoded".equals(myRequest.getContentType()) && "POST".equalsIgnoreCase(myRequest.getMethod())) {
- MultiMap formParameters = extractFormParameters(myRequest);
- MultivaluedHashMap map = new MultivaluedHashMap();
- for (String key : formParameters.keySet()) {
- for (Object value : formParameters.getValues(key)) {
- map.add(key, (String) value);
- }
- }
- session.setAttribute(CACHED_FORM_PARAMETERS, map);
- }
- }
- }
- }
-
-}
diff --git a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/KeycloakJettyAuthenticator.java b/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/KeycloakJettyAuthenticator.java
deleted file mode 100755
index 23aa9fb301..0000000000
--- a/adapters/oidc/jetty/jetty9.2/src/main/java/org/keycloak/adapters/jetty/KeycloakJettyAuthenticator.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.server.Authentication;
-import org.eclipse.jetty.server.HttpChannel;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.server.UserIdentity;
-import org.keycloak.adapters.AdapterTokenStore;
-import org.keycloak.adapters.KeycloakDeployment;
-import org.keycloak.adapters.jetty.core.AbstractKeycloakJettyAuthenticator;
-import org.keycloak.adapters.jetty.core.JettyRequestAuthenticator;
-import org.keycloak.adapters.jetty.core.JettySessionTokenStore;
-import org.keycloak.adapters.jetty.spi.JettyHttpFacade;
-import org.keycloak.adapters.jetty.spi.JettyUserSessionManagement;
-
-import javax.servlet.ServletRequest;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class KeycloakJettyAuthenticator extends AbstractKeycloakJettyAuthenticator {
-
- public KeycloakJettyAuthenticator() {
- super();
- }
-
-
- @Override
- protected Request resolveRequest(ServletRequest req) {
- return (req instanceof Request) ? (Request)req : HttpChannel.getCurrentHttpChannel().getRequest();
- }
-
- @Override
- protected Authentication createAuthentication(UserIdentity userIdentity, Request request) {
- return new KeycloakAuthentication(getAuthMethod(), userIdentity) {
- @Override
- public void logout() {
- logoutCurrent(HttpChannel.getCurrentHttpChannel().getRequest());
- }
- };
- }
-
- @Override
- public AdapterTokenStore createSessionTokenStore(Request request, KeycloakDeployment resolvedDeployment) {
- return new JettySessionTokenStore(request, resolvedDeployment, new JettyAdapterSessionStore(request));
- }
-
- @Override
- public JettyUserSessionManagement createSessionManagement(Request request) {
- return new JettyUserSessionManagement(new Jetty92SessionManager(request.getSessionManager()));
- }
-
- @Override
- protected JettyRequestAuthenticator createRequestAuthenticator(Request request, JettyHttpFacade facade,
- KeycloakDeployment deployment, AdapterTokenStore tokenStore) {
- return new Jetty92RequestAuthenticator(facade, deployment, tokenStore, -1, request);
- }
-
-}
diff --git a/adapters/oidc/jetty/jetty9.3/pom.xml b/adapters/oidc/jetty/jetty9.3/pom.xml
deleted file mode 100644
index 0343693553..0000000000
--- a/adapters/oidc/jetty/jetty9.3/pom.xml
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-
-
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../../pom.xml
-
- 4.0.0
-
- keycloak-jetty93-adapter
- Keycloak Jetty 9.3.x Integration
-
-
- org.keycloak.adapters.jetty.*
-
-
- org.eclipse.jetty.*;resolution:=optional,
- javax.servlet.*;version="[3.0,4)";resolution:=optional,
- org.keycloak.*;version="${project.version}",
- *;resolution:=optional
-
-
-
-
-
-
- org.jboss.logging
- jboss-logging
-
-
- org.keycloak
- keycloak-core
-
-
- org.keycloak
- keycloak-adapter-core
-
-
- org.keycloak
- keycloak-jetty-core
-
-
- org.apache.httpcomponents
- httpclient
-
-
- org.bouncycastle
- bcprov-jdk15on
-
-
- com.fasterxml.jackson.core
- jackson-core
-
-
- com.fasterxml.jackson.core
- jackson-databind
-
-
- com.fasterxml.jackson.core
- jackson-annotations
-
-
- org.eclipse.jetty
- jetty-server
- ${jetty93.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-util
- ${jetty93.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-security
- ${jetty93.version}
- provided
-
-
-
- junit
- junit
- test
-
-
-
-
-
-
- maven-jar-plugin
-
-
- ${project.build.outputDirectory}/META-INF/MANIFEST.MF
-
-
-
-
- org.apache.felix
- maven-bundle-plugin
- true
-
-
- bundle-manifest
- process-classes
-
- manifest
-
-
-
-
-
- .
- ${project.name}
- ${project.groupId}.${project.artifactId}
- ${keycloak.osgi.import}
- ${keycloak.osgi.export}
-
-
-
-
-
-
-
diff --git a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/Jetty93RequestAuthenticator.java b/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/Jetty93RequestAuthenticator.java
deleted file mode 100644
index e77667b65c..0000000000
--- a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/Jetty93RequestAuthenticator.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.server.Request;
-import org.keycloak.adapters.AdapterTokenStore;
-import org.keycloak.adapters.KeycloakDeployment;
-import org.keycloak.adapters.jetty.core.JettyRequestAuthenticator;
-import org.keycloak.adapters.spi.HttpFacade;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty93RequestAuthenticator extends JettyRequestAuthenticator {
- public Jetty93RequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, AdapterTokenStore tokenStore, int sslRedirectPort, Request request) {
- super(facade, deployment, tokenStore, sslRedirectPort, request);
- }
-
- @Override
- protected String changeHttpSessionId(boolean create) {
- Request request = this.request;
- HttpSession session = request.getSession(false);
- if (session == null) {
- return request.getSession(true).getId();
- }
- if (!deployment.isTurnOffChangeSessionIdOnLogin()) return request.changeSessionId();
- else return session.getId();
- }
-}
diff --git a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/Jetty93SessionManager.java b/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/Jetty93SessionManager.java
deleted file mode 100755
index da60c1157c..0000000000
--- a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/Jetty93SessionManager.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.server.SessionManager;
-import org.keycloak.adapters.jetty.spi.JettySessionManager;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty93SessionManager implements JettySessionManager {
- protected SessionManager sessionManager;
-
- public Jetty93SessionManager(SessionManager sessionManager) {
- this.sessionManager = sessionManager;
- }
-
- @Override
- public HttpSession getHttpSession(String id) {
- return sessionManager.getHttpSession(id);
- }
-}
diff --git a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/JettyAdapterSessionStore.java b/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/JettyAdapterSessionStore.java
deleted file mode 100644
index 642bdf5663..0000000000
--- a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/JettyAdapterSessionStore.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.security.authentication.FormAuthenticator;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.util.MultiMap;
-import org.keycloak.adapters.jetty.spi.JettyHttpFacade;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.common.util.MultivaluedHashMap;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class JettyAdapterSessionStore implements AdapterSessionStore {
- public static final String CACHED_FORM_PARAMETERS = "__CACHED_FORM_PARAMETERS";
- protected Request myRequest;
-
- public JettyAdapterSessionStore(Request request) {
- this.myRequest = request; // for IDE/compilation purposes
- }
-
- protected MultiMap extractFormParameters(Request base_request) {
- MultiMap formParameters = new MultiMap();
- base_request.extractFormParameters(formParameters);
- return formParameters;
- }
- protected void restoreFormParameters(MultiMap j_post, Request base_request) {
- base_request.setContentParameters(j_post);
- }
-
- public boolean restoreRequest() {
- HttpSession session = myRequest.getSession(false);
- if (session == null) return false;
- synchronized (session) {
- String j_uri = (String) session.getAttribute(FormAuthenticator.__J_URI);
- if (j_uri != null) {
- // check if the request is for the same url as the original and restore
- // params if it was a post
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- if (j_uri.equals(buf.toString())) {
- String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
- myRequest.setMethod(method);
- MultivaluedHashMap j_post = (MultivaluedHashMap) session.getAttribute(CACHED_FORM_PARAMETERS);
- if (j_post != null) {
- myRequest.setContentType("application/x-www-form-urlencoded");
- MultiMap map = new MultiMap();
- for (String key : j_post.keySet()) {
- for (String val : j_post.getList(key)) {
- map.add(key, val);
- }
- }
- restoreFormParameters(map, myRequest);
- }
- session.removeAttribute(FormAuthenticator.__J_URI);
- session.removeAttribute(JettyHttpFacade.__J_METHOD);
- session.removeAttribute(FormAuthenticator.__J_POST);
- }
- return true;
- }
- }
- return false;
- }
-
- public void saveRequest() {
- // remember the current URI
- HttpSession session = myRequest.getSession();
- synchronized (session) {
- // But only if it is not set already, or we save every uri that leads to a login form redirect
- if (session.getAttribute(FormAuthenticator.__J_URI) == null) {
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- session.setAttribute(FormAuthenticator.__J_URI, buf.toString());
- session.setAttribute(JettyHttpFacade.__J_METHOD, myRequest.getMethod());
-
- if ("application/x-www-form-urlencoded".equals(myRequest.getContentType()) && "POST".equalsIgnoreCase(myRequest.getMethod())) {
- MultiMap formParameters = extractFormParameters(myRequest);
- MultivaluedHashMap map = new MultivaluedHashMap();
- for (String key : formParameters.keySet()) {
- for (Object value : formParameters.getValues(key)) {
- map.add(key, (String) value);
- }
- }
- session.setAttribute(CACHED_FORM_PARAMETERS, map);
- }
- }
- }
- }
-
-}
diff --git a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/KeycloakJettyAuthenticator.java b/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/KeycloakJettyAuthenticator.java
deleted file mode 100644
index 0285cd8d2c..0000000000
--- a/adapters/oidc/jetty/jetty9.3/src/main/java/org/keycloak/adapters/jetty/KeycloakJettyAuthenticator.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.jetty;
-
-import org.eclipse.jetty.server.Authentication;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.server.UserIdentity;
-import org.keycloak.adapters.AdapterTokenStore;
-import org.keycloak.adapters.KeycloakDeployment;
-import org.keycloak.adapters.jetty.core.AbstractKeycloakJettyAuthenticator;
-import org.keycloak.adapters.jetty.core.JettyRequestAuthenticator;
-import org.keycloak.adapters.jetty.core.JettySessionTokenStore;
-import org.keycloak.adapters.jetty.spi.JettyHttpFacade;
-import org.keycloak.adapters.jetty.spi.JettyUserSessionManagement;
-
-import javax.servlet.ServletRequest;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class KeycloakJettyAuthenticator extends AbstractKeycloakJettyAuthenticator {
-
- public KeycloakJettyAuthenticator() {
- super();
- }
-
-
- @Override
- protected Request resolveRequest(ServletRequest req) {
- return Request.getBaseRequest(req);
- }
-
- @Override
- protected Authentication createAuthentication(UserIdentity userIdentity, final Request request) {
- return new KeycloakAuthentication(getAuthMethod(), userIdentity) {
- @Override
- public void logout() {
- logoutCurrent(request);
- }
- };
- }
-
- @Override
- public AdapterTokenStore createSessionTokenStore(Request request, KeycloakDeployment resolvedDeployment) {
- return new JettySessionTokenStore(request, resolvedDeployment, new JettyAdapterSessionStore(request));
- }
-
- @Override
- public JettyUserSessionManagement createSessionManagement(Request request) {
- return new JettyUserSessionManagement(new Jetty93SessionManager(request.getSessionManager()));
- }
-
- @Override
- protected JettyRequestAuthenticator createRequestAuthenticator(Request request, JettyHttpFacade facade,
- KeycloakDeployment deployment, AdapterTokenStore tokenStore) {
- return new Jetty93RequestAuthenticator(facade, deployment, tokenStore, -1, request);
- }
-
-}
diff --git a/adapters/oidc/jetty/pom.xml b/adapters/oidc/jetty/pom.xml
index 8aa2842a17..09f78c7650 100755
--- a/adapters/oidc/jetty/pom.xml
+++ b/adapters/oidc/jetty/pom.xml
@@ -32,8 +32,6 @@
jetty-core
- jetty9.2
- jetty9.3
jetty9.4
diff --git a/adapters/saml/jetty/jetty9.2/pom.xml b/adapters/saml/jetty/jetty9.2/pom.xml
deleted file mode 100755
index 6c76cbe67e..0000000000
--- a/adapters/saml/jetty/jetty9.2/pom.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../../pom.xml
-
- 4.0.0
-
- keycloak-saml-jetty92-adapter
- Keycloak Jetty 9.2.x SAML Integration
-
- 1.8
- 1.8
-
- 9.2.4.v20141103
-
- org.keycloak.adapters.jetty.*
-
-
- org.eclipse.jetty.*;resolution:=optional,
- javax.servlet.*;version="[3.0,4)";resolution:=optional,
- org.keycloak.*;version="${project.version}",
- *;resolution:=optional
-
-
-
-
-
-
- org.jboss.logging
- jboss-logging
-
-
- org.keycloak
- keycloak-common
-
-
- org.bouncycastle
- bcprov-jdk15on
-
-
- org.keycloak
- keycloak-saml-adapter-api-public
-
-
- org.keycloak
- keycloak-saml-adapter-core
-
-
- org.keycloak
- keycloak-adapter-spi
-
-
- org.keycloak
- keycloak-saml-jetty-adapter-core
-
-
- org.eclipse.jetty
- jetty-server
-
-
- org.eclipse.jetty
- jetty-util
-
-
- org.eclipse.jetty
- jetty-security
-
-
-
-
- org.eclipse.jetty
- jetty-server
- ${jetty9.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-util
- ${jetty9.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-security
- ${jetty9.version}
- provided
-
-
-
- junit
- junit
- test
-
-
-
-
-
-
- maven-jar-plugin
-
-
- ${project.build.outputDirectory}/META-INF/MANIFEST.MF
-
-
-
-
- org.apache.felix
- maven-bundle-plugin
- true
-
-
- bundle-manifest
- process-classes
-
- manifest
-
-
-
-
-
- .
- ${project.name}
- ${project.groupId}.${project.artifactId}
- ${keycloak.osgi.import}
- ${keycloak.osgi.export}
-
-
-
-
-
-
-
diff --git a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SamlSessionStore.java b/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SamlSessionStore.java
deleted file mode 100755
index fa618cb573..0000000000
--- a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SamlSessionStore.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.server.Request;
-import org.keycloak.adapters.jetty.spi.JettyUserSessionManagement;
-import org.keycloak.adapters.saml.SamlDeployment;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.adapters.spi.HttpFacade;
-import org.keycloak.adapters.spi.SessionIdMapper;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty9SamlSessionStore extends JettySamlSessionStore {
- public Jetty9SamlSessionStore(Request request, AdapterSessionStore sessionStore, HttpFacade facade, SessionIdMapper idMapper, JettyUserSessionManagement sessionManagement, SamlDeployment deployment) {
- super(request, sessionStore, facade, idMapper, sessionManagement, deployment);
- }
-
- @Override
- protected String changeSessionId(HttpSession session) {
- Request request = this.request;
- if (!deployment.turnOffChangeSessionIdOnLogin()) return request.changeSessionId();
- else return session.getId();
- }
-}
diff --git a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SessionManager.java b/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SessionManager.java
deleted file mode 100755
index 7df883840e..0000000000
--- a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SessionManager.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.server.SessionManager;
-import org.keycloak.adapters.jetty.spi.JettySessionManager;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty9SessionManager implements JettySessionManager {
- protected SessionManager sessionManager;
-
- public Jetty9SessionManager(SessionManager sessionManager) {
- this.sessionManager = sessionManager;
- }
-
- @Override
- public HttpSession getHttpSession(String id) {
- return sessionManager.getHttpSession(id);
- }
-}
diff --git a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/JettyAdapterSessionStore.java b/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/JettyAdapterSessionStore.java
deleted file mode 100755
index 8fe7b0152c..0000000000
--- a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/JettyAdapterSessionStore.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.http.HttpMethod;
-import org.eclipse.jetty.security.authentication.FormAuthenticator;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.util.MultiMap;
-import org.keycloak.adapters.jetty.spi.JettyHttpFacade;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.common.util.MultivaluedHashMap;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class JettyAdapterSessionStore implements AdapterSessionStore {
- public static final String CACHED_FORM_PARAMETERS = "__CACHED_FORM_PARAMETERS";
- protected Request myRequest;
-
- public JettyAdapterSessionStore(Request request) {
- this.myRequest = request; // for IDE/compilation purposes
- }
-
- protected MultiMap extractFormParameters(Request base_request) {
- MultiMap formParameters = new MultiMap();
- base_request.extractFormParameters(formParameters);
- return formParameters;
- }
- protected void restoreFormParameters(MultiMap j_post, Request base_request) {
- base_request.setContentParameters(j_post);
- }
-
- public boolean restoreRequest() {
- HttpSession session = myRequest.getSession(false);
- if (session == null) return false;
- synchronized (session) {
- String j_uri = (String) session.getAttribute(FormAuthenticator.__J_URI);
- if (j_uri != null) {
- // check if the request is for the same url as the original and restore
- // params if it was a post
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- if (j_uri.equals(buf.toString())) {
- String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
- myRequest.setMethod(HttpMethod.valueOf(method.toUpperCase()), method);
- MultivaluedHashMap j_post = (MultivaluedHashMap) session.getAttribute(CACHED_FORM_PARAMETERS);
- if (j_post != null) {
- myRequest.setContentType("application/x-www-form-urlencoded");
- MultiMap map = new MultiMap();
- for (String key : j_post.keySet()) {
- for (String val : j_post.getList(key)) {
- map.add(key, val);
- }
- }
- restoreFormParameters(map, myRequest);
- }
- session.removeAttribute(FormAuthenticator.__J_URI);
- session.removeAttribute(JettyHttpFacade.__J_METHOD);
- session.removeAttribute(FormAuthenticator.__J_POST);
- }
- return true;
- }
- }
- return false;
- }
-
- public void saveRequest() {
- // remember the current URI
- HttpSession session = myRequest.getSession();
- synchronized (session) {
- // But only if it is not set already, or we save every uri that leads to a login form redirect
- if (session.getAttribute(FormAuthenticator.__J_URI) == null) {
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- session.setAttribute(FormAuthenticator.__J_URI, buf.toString());
- session.setAttribute(JettyHttpFacade.__J_METHOD, myRequest.getMethod());
-
- if ("application/x-www-form-urlencoded".equals(myRequest.getContentType()) && "POST".equalsIgnoreCase(myRequest.getMethod())) {
- MultiMap formParameters = extractFormParameters(myRequest);
- MultivaluedHashMap map = new MultivaluedHashMap();
- for (String key : formParameters.keySet()) {
- for (Object value : formParameters.getValues(key)) {
- map.add(key, (String) value);
- }
- }
- session.setAttribute(CACHED_FORM_PARAMETERS, map);
- }
- }
- }
- }
-
-}
diff --git a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/KeycloakSamlAuthenticator.java b/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/KeycloakSamlAuthenticator.java
deleted file mode 100755
index 16af5e28b4..0000000000
--- a/adapters/saml/jetty/jetty9.2/src/main/java/org/keycloak/adapters/saml/jetty/KeycloakSamlAuthenticator.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.server.Authentication;
-import org.eclipse.jetty.server.HttpChannel;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.server.UserIdentity;
-import org.keycloak.adapters.jetty.spi.JettyUserSessionManagement;
-import org.keycloak.adapters.saml.SamlDeployment;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.adapters.spi.HttpFacade;
-
-import javax.servlet.ServletRequest;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class KeycloakSamlAuthenticator extends AbstractSamlAuthenticator {
-
- public KeycloakSamlAuthenticator() {
- super();
- }
-
-
- @Override
- protected Request resolveRequest(ServletRequest req) {
- return (req instanceof Request) ? (Request)req : HttpChannel.getCurrentHttpChannel().getRequest();
- }
-
- @Override
- public Authentication createAuthentication(UserIdentity userIdentity, Request request) {
- return new KeycloakAuthentication(getAuthMethod(), userIdentity) {
- @Override
- public void logout() {
- logoutCurrent(HttpChannel.getCurrentHttpChannel().getRequest());
- }
- };
- }
-
- @Override
- public AdapterSessionStore createSessionTokenStore(Request request, SamlDeployment resolvedDeployment) {
- return new JettyAdapterSessionStore(request);
- }
-
- @Override
- public JettyUserSessionManagement createSessionManagement(Request request) {
- return new JettyUserSessionManagement(new Jetty9SessionManager(request.getSessionManager()));
- }
-
- @Override
- protected JettySamlSessionStore createJettySamlSessionStore(Request request, HttpFacade facade, SamlDeployment resolvedDeployment) {
- JettySamlSessionStore store;
- store = new Jetty9SamlSessionStore(request, createSessionTokenStore(request, resolvedDeployment), facade, idMapper, createSessionManagement(request), resolvedDeployment);
- return store;
- }
-}
diff --git a/adapters/saml/jetty/jetty9.3/pom.xml b/adapters/saml/jetty/jetty9.3/pom.xml
deleted file mode 100644
index 04d84275fb..0000000000
--- a/adapters/saml/jetty/jetty9.3/pom.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
-
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../../pom.xml
-
- 4.0.0
-
- keycloak-saml-jetty93-adapter
- Keycloak Jetty 9.3.x SAML Integration
-
- 9.3.29.v20201019
-
- org.keycloak.adapters.jetty.*
-
-
- org.eclipse.jetty.*;resolution:=optional,
- javax.servlet.*;version="[3.0,4)";resolution:=optional,
- org.keycloak.*;version="${project.version}",
- *;resolution:=optional
-
-
-
-
-
-
- org.jboss.logging
- jboss-logging
-
-
- org.keycloak
- keycloak-common
-
-
- org.bouncycastle
- bcprov-jdk15on
-
-
- org.keycloak
- keycloak-saml-adapter-api-public
-
-
- org.keycloak
- keycloak-saml-adapter-core
-
-
- org.keycloak
- keycloak-adapter-spi
-
-
- org.keycloak
- keycloak-saml-jetty-adapter-core
-
-
- org.eclipse.jetty
- jetty-server
-
-
- org.eclipse.jetty
- jetty-util
-
-
- org.eclipse.jetty
- jetty-security
-
-
-
-
- org.eclipse.jetty
- jetty-server
- ${jetty9.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-util
- ${jetty9.version}
- provided
-
-
-
- org.eclipse.jetty
- jetty-security
- ${jetty9.version}
- provided
-
-
-
- junit
- junit
- test
-
-
-
-
-
-
- maven-jar-plugin
-
-
- ${project.build.outputDirectory}/META-INF/MANIFEST.MF
-
-
-
-
- org.apache.felix
- maven-bundle-plugin
- true
-
-
- bundle-manifest
- process-classes
-
- manifest
-
-
-
-
-
- .
- ${project.name}
- ${project.groupId}.${project.artifactId}
- ${keycloak.osgi.import}
- ${keycloak.osgi.export}
-
-
-
-
-
-
-
diff --git a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SamlSessionStore.java b/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SamlSessionStore.java
deleted file mode 100644
index fa618cb573..0000000000
--- a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SamlSessionStore.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.server.Request;
-import org.keycloak.adapters.jetty.spi.JettyUserSessionManagement;
-import org.keycloak.adapters.saml.SamlDeployment;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.adapters.spi.HttpFacade;
-import org.keycloak.adapters.spi.SessionIdMapper;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty9SamlSessionStore extends JettySamlSessionStore {
- public Jetty9SamlSessionStore(Request request, AdapterSessionStore sessionStore, HttpFacade facade, SessionIdMapper idMapper, JettyUserSessionManagement sessionManagement, SamlDeployment deployment) {
- super(request, sessionStore, facade, idMapper, sessionManagement, deployment);
- }
-
- @Override
- protected String changeSessionId(HttpSession session) {
- Request request = this.request;
- if (!deployment.turnOffChangeSessionIdOnLogin()) return request.changeSessionId();
- else return session.getId();
- }
-}
diff --git a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SessionManager.java b/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SessionManager.java
deleted file mode 100755
index 7df883840e..0000000000
--- a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/Jetty9SessionManager.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.server.SessionManager;
-import org.keycloak.adapters.jetty.spi.JettySessionManager;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class Jetty9SessionManager implements JettySessionManager {
- protected SessionManager sessionManager;
-
- public Jetty9SessionManager(SessionManager sessionManager) {
- this.sessionManager = sessionManager;
- }
-
- @Override
- public HttpSession getHttpSession(String id) {
- return sessionManager.getHttpSession(id);
- }
-}
diff --git a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/JettyAdapterSessionStore.java b/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/JettyAdapterSessionStore.java
deleted file mode 100644
index 17246056c6..0000000000
--- a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/JettyAdapterSessionStore.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.security.authentication.FormAuthenticator;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.util.MultiMap;
-import org.keycloak.adapters.jetty.spi.JettyHttpFacade;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.common.util.MultivaluedHashMap;
-
-import javax.servlet.http.HttpSession;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class JettyAdapterSessionStore implements AdapterSessionStore {
- public static final String CACHED_FORM_PARAMETERS = "__CACHED_FORM_PARAMETERS";
- protected Request myRequest;
-
- public JettyAdapterSessionStore(Request request) {
- this.myRequest = request; // for IDE/compilation purposes
- }
-
- protected MultiMap extractFormParameters(Request base_request) {
- MultiMap formParameters = new MultiMap();
- base_request.extractFormParameters(formParameters);
- return formParameters;
- }
- protected void restoreFormParameters(MultiMap j_post, Request base_request) {
- base_request.setContentParameters(j_post);
- }
-
- public boolean restoreRequest() {
- HttpSession session = myRequest.getSession(false);
- if (session == null) return false;
- synchronized (session) {
- String j_uri = (String) session.getAttribute(FormAuthenticator.__J_URI);
- if (j_uri != null) {
- // check if the request is for the same url as the original and restore
- // params if it was a post
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- if (j_uri.equals(buf.toString())) {
- String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
- myRequest.setMethod(method);
- MultivaluedHashMap j_post = (MultivaluedHashMap) session.getAttribute(CACHED_FORM_PARAMETERS);
- if (j_post != null) {
- myRequest.setContentType("application/x-www-form-urlencoded");
- MultiMap map = new MultiMap();
- for (String key : j_post.keySet()) {
- for (String val : j_post.getList(key)) {
- map.add(key, val);
- }
- }
- restoreFormParameters(map, myRequest);
- }
- session.removeAttribute(FormAuthenticator.__J_URI);
- session.removeAttribute(JettyHttpFacade.__J_METHOD);
- session.removeAttribute(FormAuthenticator.__J_POST);
- }
- return true;
- }
- }
- return false;
- }
-
- public void saveRequest() {
- // remember the current URI
- HttpSession session = myRequest.getSession();
- synchronized (session) {
- // But only if it is not set already, or we save every uri that leads to a login form redirect
- if (session.getAttribute(FormAuthenticator.__J_URI) == null) {
- StringBuffer buf = myRequest.getRequestURL();
- if (myRequest.getQueryString() != null)
- buf.append("?").append(myRequest.getQueryString());
- session.setAttribute(FormAuthenticator.__J_URI, buf.toString());
- session.setAttribute(JettyHttpFacade.__J_METHOD, myRequest.getMethod());
-
- if ("application/x-www-form-urlencoded".equals(myRequest.getContentType()) && "POST".equalsIgnoreCase(myRequest.getMethod())) {
- MultiMap formParameters = extractFormParameters(myRequest);
- MultivaluedHashMap map = new MultivaluedHashMap();
- for (String key : formParameters.keySet()) {
- for (Object value : formParameters.getValues(key)) {
- map.add(key, (String) value);
- }
- }
- session.setAttribute(CACHED_FORM_PARAMETERS, map);
- }
- }
- }
- }
-
-}
diff --git a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/KeycloakSamlAuthenticator.java b/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/KeycloakSamlAuthenticator.java
deleted file mode 100644
index 825e52284d..0000000000
--- a/adapters/saml/jetty/jetty9.3/src/main/java/org/keycloak/adapters/saml/jetty/KeycloakSamlAuthenticator.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
- * and other contributors as indicated by the @author tags.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.keycloak.adapters.saml.jetty;
-
-import org.eclipse.jetty.server.Authentication;
-import org.eclipse.jetty.server.Request;
-import org.eclipse.jetty.server.UserIdentity;
-import org.keycloak.adapters.jetty.spi.JettyUserSessionManagement;
-import org.keycloak.adapters.saml.SamlDeployment;
-import org.keycloak.adapters.spi.AdapterSessionStore;
-import org.keycloak.adapters.spi.HttpFacade;
-
-import javax.servlet.ServletRequest;
-
-/**
- * @author Bill Burke
- * @version $Revision: 1 $
- */
-public class KeycloakSamlAuthenticator extends AbstractSamlAuthenticator {
-
- public KeycloakSamlAuthenticator() {
- super();
- }
-
-
- @Override
- protected Request resolveRequest(ServletRequest req) {
- return Request.getBaseRequest(req);
- }
-
- @Override
- public Authentication createAuthentication(UserIdentity userIdentity, final Request request) {
- return new KeycloakAuthentication(getAuthMethod(), userIdentity) {
- @Override
- public void logout() {
- logoutCurrent(request);
- }
- };
- }
-
- @Override
- public AdapterSessionStore createSessionTokenStore(Request request, SamlDeployment resolvedDeployment) {
- return new JettyAdapterSessionStore(request);
- }
-
- @Override
- public JettyUserSessionManagement createSessionManagement(Request request) {
- return new JettyUserSessionManagement(new Jetty9SessionManager(request.getSessionManager()));
- }
-
- @Override
- protected JettySamlSessionStore createJettySamlSessionStore(Request request, HttpFacade facade, SamlDeployment resolvedDeployment) {
- JettySamlSessionStore store;
- store = new Jetty9SamlSessionStore(request, createSessionTokenStore(request, resolvedDeployment), facade, idMapper, createSessionManagement(request), resolvedDeployment);
- return store;
- }
-}
diff --git a/adapters/saml/jetty/pom.xml b/adapters/saml/jetty/pom.xml
index 83e4e1b9a2..b83b1a1b0b 100755
--- a/adapters/saml/jetty/pom.xml
+++ b/adapters/saml/jetty/pom.xml
@@ -32,8 +32,6 @@
jetty-core
- jetty9.2
- jetty9.3
jetty9.4
diff --git a/boms/adapter/pom.xml b/boms/adapter/pom.xml
index 8bd86f53b2..33f9d04f35 100644
--- a/boms/adapter/pom.xml
+++ b/boms/adapter/pom.xml
@@ -64,16 +64,6 @@
keycloak-tomcat-adapter
${project.version}
-
- org.keycloak
- keycloak-jetty92-adapter
- ${project.version}
-
-
- org.keycloak
- keycloak-jetty93-adapter
- ${project.version}
-
org.keycloak
keycloak-undertow-adapter
diff --git a/distribution/adapters/jetty92-adapter-zip/assembly.xml b/distribution/adapters/jetty92-adapter-zip/assembly.xml
deleted file mode 100755
index 0f1b1679ee..0000000000
--- a/distribution/adapters/jetty92-adapter-zip/assembly.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- war-dist
-
-
- zip
- tar.gz
-
- false
-
-
-
-
-
- keycloak.mod
-
- modules
-
-
- ${project.build.directory}/modules
-
-
-
-
-
- false
- true
- true
-
- org.keycloak:keycloak-jetty92-adapter
-
-
- org.eclipse.jetty:jetty-server
- org.eclipse.jetty:jetty-util
- org.eclipse.jetty:jetty-security
-
- lib/keycloak
-
-
-
diff --git a/distribution/adapters/jetty92-adapter-zip/keycloak.mod b/distribution/adapters/jetty92-adapter-zip/keycloak.mod
deleted file mode 100755
index 4da630848f..0000000000
--- a/distribution/adapters/jetty92-adapter-zip/keycloak.mod
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Keycloak Jetty Adapter
-#
-
-[depend]
-server
-security
-
-[lib]
-
-
-lib/keycloak/*.jar
-
diff --git a/distribution/adapters/jetty92-adapter-zip/pom.xml b/distribution/adapters/jetty92-adapter-zip/pom.xml
deleted file mode 100755
index 1fa988da04..0000000000
--- a/distribution/adapters/jetty92-adapter-zip/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
- 4.0.0
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../pom.xml
-
-
- keycloak-jetty92-adapter-dist
- pom
- Keycloak Jetty 9.2.x Adapter Distro
-
-
-
-
- org.keycloak
- keycloak-jetty92-adapter
-
-
-
-
-
- maven-assembly-plugin
-
-
- assemble
- package
-
- single
-
-
-
- assembly.xml
-
-
- target
-
-
- target/assembly/work
-
- false
-
-
-
-
-
-
-
-
diff --git a/distribution/adapters/jetty93-adapter-zip/assembly.xml b/distribution/adapters/jetty93-adapter-zip/assembly.xml
deleted file mode 100644
index 172882a7f1..0000000000
--- a/distribution/adapters/jetty93-adapter-zip/assembly.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- war-dist
-
-
- zip
- tar.gz
-
- false
-
-
-
-
-
- keycloak.mod
-
- modules
-
-
- ${project.build.directory}/modules
-
-
-
-
-
- false
- true
- true
-
- org.keycloak:keycloak-jetty93-adapter
-
-
- org.eclipse.jetty:jetty-server
- org.eclipse.jetty:jetty-util
- org.eclipse.jetty:jetty-security
-
- lib/keycloak
-
-
-
diff --git a/distribution/adapters/jetty93-adapter-zip/keycloak.mod b/distribution/adapters/jetty93-adapter-zip/keycloak.mod
deleted file mode 100644
index 4da630848f..0000000000
--- a/distribution/adapters/jetty93-adapter-zip/keycloak.mod
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Keycloak Jetty Adapter
-#
-
-[depend]
-server
-security
-
-[lib]
-
-
-lib/keycloak/*.jar
-
diff --git a/distribution/adapters/jetty93-adapter-zip/pom.xml b/distribution/adapters/jetty93-adapter-zip/pom.xml
deleted file mode 100644
index 6948672fe2..0000000000
--- a/distribution/adapters/jetty93-adapter-zip/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
- 4.0.0
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../pom.xml
-
-
- keycloak-jetty93-adapter-dist
- pom
- Keycloak Jetty 9.3.x Adapter Distro
-
-
-
-
- org.keycloak
- keycloak-jetty93-adapter
-
-
-
-
-
- maven-assembly-plugin
-
-
- assemble
- package
-
- single
-
-
-
- assembly.xml
-
-
- target
-
-
- target/assembly/work
-
- false
-
-
-
-
-
-
-
-
diff --git a/distribution/adapters/pom.xml b/distribution/adapters/pom.xml
index 60c2e47113..bf29d463e8 100755
--- a/distribution/adapters/pom.xml
+++ b/distribution/adapters/pom.xml
@@ -45,8 +45,6 @@
tomcat-adapter-zip
- jetty92-adapter-zip
- jetty93-adapter-zip
jetty94-adapter-zip
js-adapter-npm-zip
diff --git a/distribution/downloads/src/main/resources/files b/distribution/downloads/src/main/resources/files
index a409285a17..0f9959f1a7 100644
--- a/distribution/downloads/src/main/resources/files
+++ b/distribution/downloads/src/main/resources/files
@@ -3,15 +3,11 @@
keycloak-quarkus-dist:keycloak
keycloak-api-docs-dist:keycloak-api-docs
- keycloak-jetty92-adapter-dist:keycloak-oidc-jetty92-adapter
- keycloak-jetty93-adapter-dist:keycloak-oidc-jetty93-adapter
keycloak-jetty94-adapter-dist:keycloak-oidc-jetty94-adapter
keycloak-js-adapter-npm-dist:keycloak-oidc-js-adapter
keycloak-tomcat-adapter-dist:keycloak-oidc-tomcat-adapter
keycloak-wildfly-adapter-dist:keycloak-oidc-wildfly-adapter
- keycloak-saml-jetty92-adapter-dist:keycloak-saml-jetty92-adapter
- keycloak-saml-jetty93-adapter-dist:keycloak-saml-jetty93-adapter
keycloak-saml-jetty94-adapter-dist:keycloak-saml-jetty94-adapter
keycloak-saml-tomcat-adapter-dist:keycloak-saml-tomcat-adapter
keycloak-saml-wildfly-adapter-dist:keycloak-saml-wildfly-adapter
diff --git a/distribution/saml-adapters/jetty92-adapter-zip/assembly.xml b/distribution/saml-adapters/jetty92-adapter-zip/assembly.xml
deleted file mode 100755
index 0cfcf2ac83..0000000000
--- a/distribution/saml-adapters/jetty92-adapter-zip/assembly.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- war-dist
-
-
- zip
- tar.gz
-
- false
-
-
-
-
-
- keycloak.mod
-
- modules
-
-
- ${project.build.directory}/modules
-
-
-
-
-
- false
- true
- true
-
- org.keycloak:keycloak-saml-jetty92-adapter
-
-
- org.eclipse.jetty:jetty-server
- org.eclipse.jetty:jetty-util
- org.eclipse.jetty:jetty-security
-
- lib/keycloak
-
-
-
diff --git a/distribution/saml-adapters/jetty92-adapter-zip/keycloak.mod b/distribution/saml-adapters/jetty92-adapter-zip/keycloak.mod
deleted file mode 100755
index 4da630848f..0000000000
--- a/distribution/saml-adapters/jetty92-adapter-zip/keycloak.mod
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Keycloak Jetty Adapter
-#
-
-[depend]
-server
-security
-
-[lib]
-
-
-lib/keycloak/*.jar
-
diff --git a/distribution/saml-adapters/jetty92-adapter-zip/pom.xml b/distribution/saml-adapters/jetty92-adapter-zip/pom.xml
deleted file mode 100755
index 15e83fdabd..0000000000
--- a/distribution/saml-adapters/jetty92-adapter-zip/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
- 4.0.0
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../pom.xml
-
-
- keycloak-saml-jetty92-adapter-dist
- pom
- Keycloak SAML Jetty 9.2.x Adapter Distro
-
-
-
-
- org.keycloak
- keycloak-saml-jetty92-adapter
-
-
-
-
-
- maven-assembly-plugin
-
-
- assemble
- package
-
- single
-
-
-
- assembly.xml
-
-
- target
-
-
- target/assembly/work
-
- false
-
-
-
-
-
-
-
-
diff --git a/distribution/saml-adapters/jetty93-adapter-zip/assembly.xml b/distribution/saml-adapters/jetty93-adapter-zip/assembly.xml
deleted file mode 100644
index cafc561481..0000000000
--- a/distribution/saml-adapters/jetty93-adapter-zip/assembly.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- war-dist
-
-
- zip
- tar.gz
-
- false
-
-
-
-
-
- keycloak.mod
-
- modules
-
-
- ${project.build.directory}/modules
-
-
-
-
-
- false
- true
- true
-
- org.keycloak:keycloak-saml-jetty93-adapter
-
-
- org.eclipse.jetty:jetty-server
- org.eclipse.jetty:jetty-util
- org.eclipse.jetty:jetty-security
-
- lib/keycloak
-
-
-
diff --git a/distribution/saml-adapters/jetty93-adapter-zip/keycloak.mod b/distribution/saml-adapters/jetty93-adapter-zip/keycloak.mod
deleted file mode 100644
index 4da630848f..0000000000
--- a/distribution/saml-adapters/jetty93-adapter-zip/keycloak.mod
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Keycloak Jetty Adapter
-#
-
-[depend]
-server
-security
-
-[lib]
-
-
-lib/keycloak/*.jar
-
diff --git a/distribution/saml-adapters/jetty93-adapter-zip/pom.xml b/distribution/saml-adapters/jetty93-adapter-zip/pom.xml
deleted file mode 100644
index d8414f80cd..0000000000
--- a/distribution/saml-adapters/jetty93-adapter-zip/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
- 4.0.0
-
- keycloak-parent
- org.keycloak
- 999-SNAPSHOT
- ../../../pom.xml
-
-
- keycloak-saml-jetty93-adapter-dist
- pom
- Keycloak SAML Jetty 9.3.x Adapter Distro
-
-
-
-
- org.keycloak
- keycloak-saml-jetty93-adapter
-
-
-
-
-
- maven-assembly-plugin
-
-
- assemble
- package
-
- single
-
-
-
- assembly.xml
-
-
- target
-
-
- target/assembly/work
-
- false
-
-
-
-
-
-
-
-
diff --git a/distribution/saml-adapters/pom.xml b/distribution/saml-adapters/pom.xml
index 6eaef173a1..3afc850e8d 100755
--- a/distribution/saml-adapters/pom.xml
+++ b/distribution/saml-adapters/pom.xml
@@ -43,8 +43,6 @@
- jetty92-adapter-zip
- jetty93-adapter-zip
jetty94-adapter-zip
tomcat-adapter-zip
diff --git a/misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/__init__.py b/misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/__init__.py
index 4c5e776341..5a6b1b092f 100644
--- a/misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/__init__.py
+++ b/misc/scripts/upgrade-wildfly/lib/wildfly/upgrade/__init__.py
@@ -623,8 +623,6 @@ _keycloakSpecificProperties = [
"resteasy.undertow.version",
"owasp.html.sanitizer.version",
"sun.xml.ws.version",
- "jetty92.version",
- "jetty93.version",
"jetty94.version",
"ua-parser.version",
"version.com.openshift.openshift-restclient-java",
@@ -720,7 +718,6 @@ _keycloakToWildflyProperties = {
"undertow.version" : "version.io.undertow",
"elytron.version" : "version.org.wildfly.security.elytron",
"elytron.undertow-server.version" : "version.org.wildfly.security.elytron-web",
- # Skip "jetty92.version", "jetty93.version", and "jetty94.version" since Keycloak specific
"woodstox.version" : "version.org.codehaus.woodstox.woodstox-core",
"xmlsec.version" : "version.org.apache.santuario",
"glassfish.json.version" : "version.org.glassfish.jakarta.json",
diff --git a/pom.xml b/pom.xml
index f6f4142c2c..177bf6bd2c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,8 +113,6 @@
2.2.5.Final
1.18.3.Final
1.9.0.Final
- 9.2.4.v20141103
- 9.3.29.v20201019
9.4.40.v20210413
6.0.3
2.2.3
@@ -136,7 +134,7 @@
3.4.0
2.3.31
- ${jetty92.version}
+ ${jetty94.version}
4.8.0
4.2.0
7.1.0
@@ -1128,16 +1126,6 @@
keycloak-jetty-core
${project.version}
-
- org.keycloak
- keycloak-jetty92-adapter
- ${project.version}
-
-
- org.keycloak
- keycloak-jetty93-adapter
- ${project.version}
-
org.keycloak
keycloak-jetty94-adapter
@@ -1338,16 +1326,6 @@
keycloak-saml-wildfly-subsystem
${project.version}
-
- org.keycloak
- keycloak-saml-jetty92-adapter
- ${project.version}
-
-
- org.keycloak
- keycloak-saml-jetty93-adapter
- ${project.version}
-
org.keycloak
keycloak-saml-jetty94-adapter
@@ -1494,18 +1472,6 @@
${project.version}
zip
-
- org.keycloak
- keycloak-jetty92-adapter-dist
- ${project.version}
- zip
-
-
- org.keycloak
- keycloak-jetty93-adapter-dist
- ${project.version}
- zip
-
org.keycloak
keycloak-jetty94-adapter-dist
@@ -1542,18 +1508,6 @@
${project.version}
zip
-
- org.keycloak
- keycloak-saml-jetty92-adapter-dist
- ${project.version}
- zip
-
-
- org.keycloak
- keycloak-saml-jetty93-adapter-dist
- ${project.version}
- zip
-
org.keycloak
keycloak-saml-jetty94-adapter-dist
diff --git a/testsuite/integration-arquillian/HOW-TO-RUN.md b/testsuite/integration-arquillian/HOW-TO-RUN.md
index af8ae7f07f..e421474f8c 100644
--- a/testsuite/integration-arquillian/HOW-TO-RUN.md
+++ b/testsuite/integration-arquillian/HOW-TO-RUN.md
@@ -225,10 +225,9 @@ where ${HOST} is url of keycloak, for example: `keycloak-keycloak.192.168.42.91.
### Jetty
-At the moment we can run the testsuite with Jetty `9.2` and `9.4`.
+At the moment we can run the testsuite with Jetty `9.4`.
Each version has its corresponding profile:
-* Jetty `9.2`: `app-server-jetty92`
* Jetty `9.4`: `app-server-jetty94`
Here's how to run the tests with Jetty `9.4`:
@@ -367,8 +366,6 @@ mvn -f testsuite/integration-arquillian/tests/other/springboot-tests/pom.xml \
[-Pspringboot26]
```
- **Note:** Spring Boot 2.x doesn't work with `jetty92` and `jetty93`, only `jetty94` is tested.
-
## Base UI tests
Similarly to Admin Console tests, these tests are focused on UI, specifically on the parts of the server that are accessed by an end user (like Login page, or Account Console).
They are designed to work with mobile browsers (alongside the standard desktop browsers). For details on the supported browsers and their configuration please refer to [Different Browsers chapter](#different-browsers).
diff --git a/testsuite/integration-arquillian/servers/app-server/jetty/92/pom.xml b/testsuite/integration-arquillian/servers/app-server/jetty/92/pom.xml
deleted file mode 100644
index 90e3cb6dea..0000000000
--- a/testsuite/integration-arquillian/servers/app-server/jetty/92/pom.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty
- 999-SNAPSHOT
-
-
- 4.0.0
-
- integration-arquillian-servers-app-server-jetty-92
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty-common
- ${project.version}
-
-
- org.keycloak
- keycloak-jetty92-adapter
-
-
- org.keycloak
- keycloak-saml-jetty92-adapter
-
-
- org.jboss.arquillian.container
- arquillian-jetty-embedded-9
- ${arquillian-jetty9-container.version}
-
-
-
- org.eclipse.jetty
- jetty-server
- ${jetty92.version}
-
-
-
- org.eclipse.jetty
- jetty-deploy
- ${jetty92.version}
-
-
-
- org.eclipse.jetty
- jetty-jaas
- ${jetty92.version}
-
-
-
- org.eclipse.jetty
- jetty-annotations
- ${jetty92.version}
-
-
-
- junit
- junit
- test
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty-common
- ${project.version}
- tests
- test-jar
-
-
-
- App Server - Jetty 9.2
-
-
diff --git a/testsuite/integration-arquillian/servers/app-server/jetty/92/src/test/java/org/keycloak/testsuite/arquillian/jetty/Jetty92AppServerTest.java b/testsuite/integration-arquillian/servers/app-server/jetty/92/src/test/java/org/keycloak/testsuite/arquillian/jetty/Jetty92AppServerTest.java
deleted file mode 100644
index 2012c27612..0000000000
--- a/testsuite/integration-arquillian/servers/app-server/jetty/92/src/test/java/org/keycloak/testsuite/arquillian/jetty/Jetty92AppServerTest.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.keycloak.testsuite.arquillian.jetty;
-
-public class Jetty92AppServerTest extends AbstractJettyAppServerTest {
-
-}
diff --git a/testsuite/integration-arquillian/servers/app-server/jetty/93/pom.xml b/testsuite/integration-arquillian/servers/app-server/jetty/93/pom.xml
deleted file mode 100644
index 07358174de..0000000000
--- a/testsuite/integration-arquillian/servers/app-server/jetty/93/pom.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty
- 999-SNAPSHOT
-
-
- 4.0.0
-
- integration-arquillian-servers-app-server-jetty-93
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty-common
- ${project.version}
-
-
- org.keycloak
- keycloak-jetty93-adapter
-
-
- org.keycloak
- keycloak-saml-jetty93-adapter
-
-
- org.jboss.arquillian.container
- arquillian-jetty-embedded-9
- ${arquillian-jetty9-container.version}
-
-
-
- org.eclipse.jetty
- jetty-server
- ${jetty93.version}
-
-
-
- org.eclipse.jetty
- jetty-deploy
- ${jetty93.version}
-
-
-
- org.eclipse.jetty
- jetty-jaas
- ${jetty93.version}
-
-
-
- org.eclipse.jetty
- jetty-annotations
- ${jetty93.version}
-
-
-
- junit
- junit
- test
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty-common
- ${project.version}
- tests
- test-jar
-
-
-
- App Server - Jetty 9.3
-
-
diff --git a/testsuite/integration-arquillian/servers/app-server/jetty/93/src/test/java/org/keycloak/testsuite/arquillian/jetty/Jetty93AppServerTest.java b/testsuite/integration-arquillian/servers/app-server/jetty/93/src/test/java/org/keycloak/testsuite/arquillian/jetty/Jetty93AppServerTest.java
deleted file mode 100644
index 93d3ab8238..0000000000
--- a/testsuite/integration-arquillian/servers/app-server/jetty/93/src/test/java/org/keycloak/testsuite/arquillian/jetty/Jetty93AppServerTest.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package org.keycloak.testsuite.arquillian.jetty;
-
-public class Jetty93AppServerTest extends AbstractJettyAppServerTest {
-
-}
diff --git a/testsuite/integration-arquillian/servers/app-server/jetty/pom.xml b/testsuite/integration-arquillian/servers/app-server/jetty/pom.xml
index 7a4f568cea..86130e1f75 100644
--- a/testsuite/integration-arquillian/servers/app-server/jetty/pom.xml
+++ b/testsuite/integration-arquillian/servers/app-server/jetty/pom.xml
@@ -42,32 +42,6 @@
94
-
- app-server-jetty93
-
-
- app.server
- jetty93
-
-
-
- common
- 93
-
-
-
- app-server-jetty92
-
-
- app.server
- jetty92
-
-
-
- common
- 92
-
-
diff --git a/testsuite/integration-arquillian/test-apps/spring-boot-adapter-app/pom.xml b/testsuite/integration-arquillian/test-apps/spring-boot-adapter-app/pom.xml
index bff2dbfcec..1b7b00b30f 100644
--- a/testsuite/integration-arquillian/test-apps/spring-boot-adapter-app/pom.xml
+++ b/testsuite/integration-arquillian/test-apps/spring-boot-adapter-app/pom.xml
@@ -124,69 +124,6 @@
-
- spring-boot-adapter-jetty92
-
-
- ${jetty92.version}
-
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
-
-
-
- org.keycloak
- keycloak-jetty92-adapter
- ${project.version}
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
-
-
-
- spring-boot-adapter-jetty93
-
-
- ${jetty93.version}
-
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
-
-
-
- org.keycloak
- keycloak-jetty93-adapter
- ${project.version}
-
-
- org.springframework.boot
- spring-boot-starter-jetty
- ${spring-boot.version}
-
-
-
-
spring-boot-adapter-jetty94
diff --git a/testsuite/integration-arquillian/tests/base/pom.xml b/testsuite/integration-arquillian/tests/base/pom.xml
index d914b74aa8..38e3fe327a 100644
--- a/testsuite/integration-arquillian/tests/base/pom.xml
+++ b/testsuite/integration-arquillian/tests/base/pom.xml
@@ -486,64 +486,6 @@
-
- app-server-jetty93
-
-
- app.server
- jetty93
-
-
-
- jetty93
- true
-
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty-93
- ${project.version}
- runtime
-
-
-
-
-
- org.commonjava.maven.plugins
- directory-maven-plugin
-
-
-
-
-
- app-server-jetty92
-
-
- app.server
- jetty92
-
-
-
- jetty92
- true
-
-
-
- org.keycloak.testsuite
- integration-arquillian-servers-app-server-jetty-92
- ${project.version}
- runtime
-
-
-
-
-
- org.commonjava.maven.plugins
- directory-maven-plugin
-
-
-
-
app-server-wildfly
diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLClockSkewAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLClockSkewAdapterTest.java
index e4c44613d3..613a9715d5 100644
--- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLClockSkewAdapterTest.java
+++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLClockSkewAdapterTest.java
@@ -50,8 +50,6 @@ import static org.keycloak.testsuite.util.SamlClient.Binding.POST;
@AppServerContainer(ContainerConstants.APP_SERVER_EAP)
@AppServerContainer(ContainerConstants.APP_SERVER_EAP6)
@AppServerContainer(ContainerConstants.APP_SERVER_EAP71)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY92)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY93)
@AppServerContainer(ContainerConstants.APP_SERVER_JETTY94)
public class SAMLClockSkewAdapterTest extends AbstractSAMLServletAdapterTest {
@@ -143,8 +141,6 @@ public class SAMLClockSkewAdapterTest extends AbstractSAMLServletAdapterTest {
@AppServerContainer(value = ContainerConstants.APP_SERVER_EAP, skip = true)
@AppServerContainer(value = ContainerConstants.APP_SERVER_EAP6, skip = true)
@AppServerContainer(value = ContainerConstants.APP_SERVER_EAP71, skip = true)
- @AppServerContainer(value = ContainerConstants.APP_SERVER_JETTY92, skip = true)
- @AppServerContainer(value = ContainerConstants.APP_SERVER_JETTY93, skip = true)
@AppServerContainer(value = ContainerConstants.APP_SERVER_JETTY94, skip = true)
public void testClockSkewTomcat() throws Exception {
diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLLoginResponseHandlingTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLLoginResponseHandlingTest.java
index 64df3d11e1..1e089ceacb 100644
--- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLLoginResponseHandlingTest.java
+++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLLoginResponseHandlingTest.java
@@ -62,8 +62,6 @@ import static org.keycloak.testsuite.util.WaitUtils.waitUntilElement;
@AppServerContainer(ContainerConstants.APP_SERVER_EAP71)
@AppServerContainer(ContainerConstants.APP_SERVER_TOMCAT8)
@AppServerContainer(ContainerConstants.APP_SERVER_TOMCAT9)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY92)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY93)
@AppServerContainer(ContainerConstants.APP_SERVER_JETTY94)
public class SAMLLoginResponseHandlingTest extends AbstractSAMLServletAdapterTest {
diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLServletSessionTimeoutTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLServletSessionTimeoutTest.java
index a87821f5ed..33939480bf 100644
--- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLServletSessionTimeoutTest.java
+++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/SAMLServletSessionTimeoutTest.java
@@ -43,8 +43,6 @@ import static org.keycloak.testsuite.util.Matchers.bodyHC;
@AppServerContainer(ContainerConstants.APP_SERVER_EAP71)
@AppServerContainer(ContainerConstants.APP_SERVER_TOMCAT8)
@AppServerContainer(ContainerConstants.APP_SERVER_TOMCAT9)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY92)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY93)
@AppServerContainer(ContainerConstants.APP_SERVER_JETTY94)
public class SAMLServletSessionTimeoutTest extends AbstractSAMLServletAdapterTest {
diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettyDemoServletAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettyDemoServletAdapterTest.java
index c4ad2ab4e0..5826aba360 100644
--- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettyDemoServletAdapterTest.java
+++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettyDemoServletAdapterTest.java
@@ -6,8 +6,6 @@ import org.keycloak.testsuite.arquillian.annotation.AppServerContainer;
import org.keycloak.testsuite.utils.arquillian.ContainerConstants;
@AppServerContainer(ContainerConstants.APP_SERVER_JETTY94)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY93)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY92)
public class JettyDemoServletAdapterTest extends DemoServletsAdapterTest {
@Ignore("KEYCLOAK-9614")
diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettySAMLServletAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettySAMLServletAdapterTest.java
index 68d7407242..4132fe0e67 100644
--- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettySAMLServletAdapterTest.java
+++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/jetty/JettySAMLServletAdapterTest.java
@@ -6,8 +6,6 @@ import org.keycloak.testsuite.arquillian.annotation.AppServerContainer;
import org.keycloak.testsuite.utils.arquillian.ContainerConstants;
@AppServerContainer(ContainerConstants.APP_SERVER_JETTY94)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY93)
-@AppServerContainer(ContainerConstants.APP_SERVER_JETTY92)
public class JettySAMLServletAdapterTest extends SAMLServletAdapterTest {
@Ignore("KEYCLOAK-9687")
diff --git a/testsuite/integration-arquillian/util/src/main/java/org/keycloak/testsuite/utils/arquillian/ContainerConstants.java b/testsuite/integration-arquillian/util/src/main/java/org/keycloak/testsuite/utils/arquillian/ContainerConstants.java
index 2a9a3bf7e0..fb1cd6e1b8 100644
--- a/testsuite/integration-arquillian/util/src/main/java/org/keycloak/testsuite/utils/arquillian/ContainerConstants.java
+++ b/testsuite/integration-arquillian/util/src/main/java/org/keycloak/testsuite/utils/arquillian/ContainerConstants.java
@@ -36,8 +36,6 @@ public interface ContainerConstants {
public static final String APP_SERVER_EAP6_CLUSTER = APP_SERVER_EAP6 + "-ha-node-1;" + APP_SERVER_EAP6 + "-ha-node-2";
public static final String APP_SERVER_JETTY94 = APP_SERVER_PREFIX + "jetty94";
- public static final String APP_SERVER_JETTY93 = APP_SERVER_PREFIX + "jetty93";
- public static final String APP_SERVER_JETTY92 = APP_SERVER_PREFIX + "jetty92";
public static final String APP_SERVER_TOMCAT8 = APP_SERVER_PREFIX + "tomcat8";
public static final String APP_SERVER_TOMCAT9 = APP_SERVER_PREFIX + "tomcat9";