re-enable and fix jetty-openid for ee9
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
131fd00285
commit
dde0b4f6c1
|
@ -11,6 +11,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
import org.eclipse.jetty.ee9.security.Authenticator;
|
||||
import org.eclipse.jetty.ee9.security.openid.OpenIdAuthenticatorFactory;
|
||||
|
||||
module org.eclipse.jetty.security.openid
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.security.openid;
|
||||
package org.eclipse.jetty.ee9.security.openid;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
|
@ -27,19 +27,18 @@ import jakarta.servlet.ServletResponse;
|
|||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.servlet.http.HttpSession;
|
||||
import org.eclipse.jetty.ee9.nested.Authentication;
|
||||
import org.eclipse.jetty.ee9.nested.Request;
|
||||
import org.eclipse.jetty.ee9.nested.Response;
|
||||
import org.eclipse.jetty.ee9.nested.UserIdentity;
|
||||
import org.eclipse.jetty.ee9.security.LoginService;
|
||||
import org.eclipse.jetty.ee9.security.ServerAuthException;
|
||||
import org.eclipse.jetty.ee9.security.UserAuthentication;
|
||||
import org.eclipse.jetty.ee9.security.authentication.DeferredAuthentication;
|
||||
import org.eclipse.jetty.ee9.security.authentication.LoginAuthenticator;
|
||||
import org.eclipse.jetty.ee9.security.authentication.SessionAuthentication;
|
||||
import org.eclipse.jetty.http.HttpMethod;
|
||||
import org.eclipse.jetty.http.MimeTypes;
|
||||
import org.eclipse.jetty.security.LoginService;
|
||||
import org.eclipse.jetty.security.ServerAuthException;
|
||||
import org.eclipse.jetty.security.UserAuthentication;
|
||||
import org.eclipse.jetty.security.authentication.DeferredAuthentication;
|
||||
import org.eclipse.jetty.security.authentication.LoginAuthenticator;
|
||||
import org.eclipse.jetty.security.authentication.SessionAuthentication;
|
||||
import org.eclipse.jetty.server.Authentication;
|
||||
import org.eclipse.jetty.server.Authentication.User;
|
||||
import org.eclipse.jetty.server.Request;
|
||||
import org.eclipse.jetty.server.Response;
|
||||
import org.eclipse.jetty.server.UserIdentity;
|
||||
import org.eclipse.jetty.util.MultiMap;
|
||||
import org.eclipse.jetty.util.URIUtil;
|
||||
import org.eclipse.jetty.util.UrlEncoded;
|
||||
|
@ -371,7 +370,7 @@ public class OpenIdAuthenticator extends LoginAuthenticator
|
|||
{
|
||||
final HttpServletRequest request = (HttpServletRequest)req;
|
||||
final HttpServletResponse response = (HttpServletResponse)res;
|
||||
final Request baseRequest = Objects.requireNonNull(Request.getBaseRequest(request));
|
||||
final Request baseRequest = Request.getBaseRequest(request);
|
||||
final Response baseResponse = baseRequest.getResponse();
|
||||
|
||||
if (LOG.isDebugEnabled())
|
||||
|
@ -622,7 +621,7 @@ public class OpenIdAuthenticator extends LoginAuthenticator
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, User validatedUser)
|
||||
public boolean secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
|
||||
{
|
||||
return req.isSecure();
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.security.openid;
|
||||
package org.eclipse.jetty.ee9.security.openid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -1 +1 @@
|
|||
org.eclipse.jetty.security.openid.OpenIdAuthenticatorFactory
|
||||
org.eclipse.jetty.ee9.security.openid.OpenIdAuthenticatorFactory
|
|
@ -1 +0,0 @@
|
|||
org.eclipse.jetty.ee9.security.openid.OpenIdAuthenticatorFactory
|
|
@ -11,7 +11,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.security.openid;
|
||||
package org.eclipse.jetty.ee9.security.openid;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.Principal;
|
||||
|
@ -23,12 +23,12 @@ import jakarta.servlet.http.HttpServletRequest;
|
|||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.eclipse.jetty.client.HttpClient;
|
||||
import org.eclipse.jetty.client.api.ContentResponse;
|
||||
import org.eclipse.jetty.ee9.security.ConstraintMapping;
|
||||
import org.eclipse.jetty.ee9.security.ConstraintSecurityHandler;
|
||||
import org.eclipse.jetty.ee9.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.http.HttpStatus;
|
||||
import org.eclipse.jetty.security.ConstraintMapping;
|
||||
import org.eclipse.jetty.security.ConstraintSecurityHandler;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.ServerConnector;
|
||||
import org.eclipse.jetty.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.util.security.Constraint;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.security.openid;
|
||||
package org.eclipse.jetty.ee9.security.openid;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
|
@ -29,13 +29,13 @@ import jakarta.servlet.ServletException;
|
|||
import jakarta.servlet.http.HttpServlet;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.eclipse.jetty.ee9.nested.Request;
|
||||
import org.eclipse.jetty.ee9.nested.Response;
|
||||
import org.eclipse.jetty.ee9.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.ee9.servlet.ServletHolder;
|
||||
import org.eclipse.jetty.http.HttpVersion;
|
||||
import org.eclipse.jetty.server.Request;
|
||||
import org.eclipse.jetty.server.Response;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.ServerConnector;
|
||||
import org.eclipse.jetty.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.servlet.ServletHolder;
|
||||
import org.eclipse.jetty.util.StringUtil;
|
||||
import org.eclipse.jetty.util.component.ContainerLifeCycle;
|
||||
import org.eclipse.jetty.util.statistic.CounterStatistic;
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
|
||||
package org.eclipse.jetty.ee9.security.openid;
|
||||
|
||||
import org.eclipse.jetty.ee9.nested.ContextHandlerCollection;
|
||||
import org.eclipse.jetty.ee9.security.Authenticator;
|
||||
import org.eclipse.jetty.ee9.security.ConstraintSecurityHandler;
|
||||
import org.eclipse.jetty.ee9.security.LoginService;
|
||||
import org.eclipse.jetty.ee9.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
|
||||
import org.eclipse.jetty.util.security.Constraint;
|
||||
import org.hamcrest.Matchers;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<module>jetty-ee9-jndi</module>
|
||||
<module>jetty-ee9-jspc-maven-plugin</module>
|
||||
<module>jetty-ee9-maven-plugin</module>
|
||||
<!-- <module>jetty-ee9-openid</module>-->
|
||||
<module>jetty-ee9-openid</module>
|
||||
<!-- <module>jetty-ee9-osgi</module>-->
|
||||
<module>jetty-ee9-plus</module>
|
||||
<!-- <module>jetty-ee9-proxy</module>-->
|
||||
|
|
Loading…
Reference in New Issue