Ignore adapters
This commit is contained in:
parent
e505021681
commit
ceed48a45a
8 changed files with 46 additions and 16 deletions
|
@ -29,11 +29,10 @@
|
|||
|
||||
<artifactId>keycloak-oidc-client-adapter-pom</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<module>adapter-core</module>
|
||||
<module>installed</module>
|
||||
<module>jaxrs-oauth-client</module>
|
||||
<!-- <module>jaxrs-oauth-client</module>
|
||||
<module>jetty</module>
|
||||
<module>js</module>
|
||||
<module>servlet-filter</module>
|
||||
|
@ -45,6 +44,6 @@
|
|||
<module>tomcat</module>
|
||||
<module>undertow</module>
|
||||
<module>wildfly</module>
|
||||
<module>wildfly-elytron</module>
|
||||
<module>wildfly-elytron</module>-->
|
||||
</modules>
|
||||
</project>
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
<modules>
|
||||
<module>core-public</module>
|
||||
<module>core</module>
|
||||
<module>jetty</module>
|
||||
<module>undertow</module>
|
||||
<module>tomcat</module>
|
||||
<!--<module>jetty</module>-->
|
||||
<!--<module>undertow</module>
|
||||
<module>tomcat</module>-->
|
||||
<module>wildfly</module>
|
||||
<module>servlet-filter</module>
|
||||
<module>jakarta-servlet-filter</module>
|
||||
|
|
|
@ -68,9 +68,8 @@
|
|||
<artifactId>keycloak-crypto-default</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.spec.javax.servlet</groupId>
|
||||
<artifactId>jboss-servlet-api_3.0_spec</artifactId>
|
||||
<scope>provided</scope>
|
||||
<groupId>jakarta.servlet</groupId>
|
||||
<artifactId>jakarta.servlet-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
|
|
@ -67,9 +67,8 @@
|
|||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.spec.javax.servlet</groupId>
|
||||
<artifactId>jboss-servlet-api_3.0_spec</artifactId>
|
||||
<scope>provided</scope>
|
||||
<groupId>jakarta.servlet</groupId>
|
||||
<artifactId>jakarta.servlet-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wildfly.security</groupId>
|
||||
|
|
|
@ -32,11 +32,11 @@
|
|||
|
||||
<modules>
|
||||
<module>adapter-spi</module>
|
||||
<module>tomcat-adapter-spi</module>
|
||||
<!--<module>tomcat-adapter-spi</module>-->
|
||||
<module>undertow-adapter-spi</module>
|
||||
<module>servlet-adapter-spi</module>
|
||||
<module>jakarta-servlet-adapter-spi</module>
|
||||
<module>jboss-adapter-core</module>
|
||||
<module>jetty-adapter-spi</module>
|
||||
<!--<module>jetty-adapter-spi</module>-->
|
||||
</modules>
|
||||
</project>
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
<artifactId>keycloak-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.spec.javax.servlet</groupId>
|
||||
<artifactId>jboss-servlet-api_3.0_spec</artifactId>
|
||||
<groupId>jakarta.servlet</groupId>
|
||||
<artifactId>jakarta.servlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
package org.keycloak.adapters.servlet;
|
||||
|
||||
import jakarta.servlet.ReadListener;
|
||||
import org.keycloak.adapters.spi.AdapterSessionStore;
|
||||
import org.keycloak.adapters.spi.HttpFacade;
|
||||
import org.keycloak.adapters.spi.KeycloakAccount;
|
||||
|
@ -174,6 +175,21 @@ public class FilterSessionStore implements AdapterSessionStore {
|
|||
if (needRequestRestore && body != null) {
|
||||
final ByteArrayInputStream is = new ByteArrayInputStream(body);
|
||||
return new ServletInputStream() {
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReady() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setReadListener(ReadListener readListener) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
return is.read();
|
||||
|
|
|
@ -27,6 +27,7 @@ import io.undertow.servlet.handlers.ServletRequestContext;
|
|||
import io.undertow.util.AttachmentKey;
|
||||
import io.undertow.util.Headers;
|
||||
import io.undertow.util.HttpString;
|
||||
import jakarta.servlet.ReadListener;
|
||||
import org.keycloak.adapters.spi.AuthenticationError;
|
||||
import org.keycloak.adapters.spi.HttpFacade;
|
||||
import org.keycloak.adapters.spi.LogoutError;
|
||||
|
@ -201,6 +202,22 @@ public class UndertowHttpFacade implements HttpFacade {
|
|||
public ServletInputStream getInputStream() {
|
||||
inputStream.mark(0);
|
||||
return new ServletInputStream() {
|
||||
//TODO
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReady() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setReadListener(ReadListener readListener) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
return inputStream.read();
|
||||
|
|
Loading…
Reference in a new issue