mirror of
https://github.com/bmlong137/alfresco-keycloak.git
synced 2025-05-12 21:24:43 +00:00
Fix error on failed Bearer authentication
This commit is contained in:
parent
3846f34583
commit
31936cdcea
@ -18,5 +18,5 @@ RUN java -jar ${alfresco.share.docker.mmt.path}/alfresco-mmt*.jar install \
|
|||||||
|
|
||||||
RUN sed -i 's/<secure>true<\/secure>/<secure>false<\/secure>/' ${alfresco.share.docker.tomcat.path}/conf/web.xml
|
RUN sed -i 's/<secure>true<\/secure>/<secure>false<\/secure>/' ${alfresco.share.docker.tomcat.path}/conf/web.xml
|
||||||
|
|
||||||
COPY share.xml ${alfresco.repo.docker.tomcat.path}/conf/Catalina/localhost/share.xml
|
COPY share.xml ${alfresco.share.docker.tomcat.path}/conf/Catalina/localhost/share.xml
|
||||||
COPY share-config-custom.xml ${alfresco.repo.docker.tomcat.path}/shared/classes/alfresco/web-extension/share-config-custom.xml
|
COPY share-config-custom.xml ${alfresco.share.docker.tomcat.path}/shared/classes/alfresco/web-extension/share-config-custom.xml
|
||||||
|
@ -23,12 +23,12 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.alfresco.util.Pair;
|
import org.alfresco.util.Pair;
|
||||||
import org.keycloak.adapters.servlet.ServletHttpFacade;
|
import org.keycloak.adapters.servlet.OIDCServletHttpFacade;
|
||||||
import org.keycloak.adapters.spi.HttpFacade;
|
import org.keycloak.adapters.spi.HttpFacade;
|
||||||
|
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This {@link HttpFacade} wraps servlet requests and responses in such a way that any response headers / cookies being set by Keycloak
|
* This {@link HttpFacade} wraps servlet requests and responses in such a way that any response headers / cookies being set by Keycloak
|
||||||
* authenticators are captured, and otherwise no output is written to the servlet response. This is required for some scenarios in which a
|
* authenticators are captured, and otherwise no output is written to the servlet response. This is required for some scenarios in which a
|
||||||
@ -36,7 +36,7 @@ import org.keycloak.adapters.spi.HttpFacade;
|
|||||||
*
|
*
|
||||||
* @author Axel Faust
|
* @author Axel Faust
|
||||||
*/
|
*/
|
||||||
public class ResponseHeaderCookieCaptureServletHttpFacade extends ServletHttpFacade
|
public class ResponseHeaderCookieCaptureServletHttpFacade extends OIDCServletHttpFacade
|
||||||
{
|
{
|
||||||
|
|
||||||
protected final Map<Pair<String, String>, jakarta.servlet.http.Cookie> cookies = new HashMap<>();
|
protected final Map<Pair<String, String>, jakarta.servlet.http.Cookie> cookies = new HashMap<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user