add more debug printlns and a stack trace
This commit is contained in:
parent
d2e8501052
commit
e30622516a
|
@ -86,6 +86,7 @@ public class JaspiAuthenticator implements Authenticator
|
||||||
+ _allowLazyAuthentication
|
+ _allowLazyAuthentication
|
||||||
+ " mandatory="
|
+ " mandatory="
|
||||||
+ mandatory);
|
+ mandatory);
|
||||||
|
new Throwable().printStackTrace();
|
||||||
|
|
||||||
JaspiMessageInfo info = new JaspiMessageInfo(request, response, mandatory);
|
JaspiMessageInfo info = new JaspiMessageInfo(request, response, mandatory);
|
||||||
request.setAttribute("org.eclipse.jetty.security.jaspi.info", info);
|
request.setAttribute("org.eclipse.jetty.security.jaspi.info", info);
|
||||||
|
|
|
@ -157,7 +157,7 @@ public class FormAuthModule extends BaseAuthModule
|
||||||
mandatory |= isJSecurityCheck(uri);
|
mandatory |= isJSecurityCheck(uri);
|
||||||
HttpSession session = request.getSession(mandatory);
|
HttpSession session = request.getSession(mandatory);
|
||||||
|
|
||||||
System.err.println("FormAuthModule.validateRequest(info,subject,serviceSubject) for uri="+uri+" mandatory="+mandatory+" isLoginOrError="+isLoginOrErrorPage(uri));
|
System.err.println("FormAuthModule.validateRequest(info,subject,serviceSubject) for uri="+uri+" mandatory="+mandatory+" isLoginOrError="+isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo())));
|
||||||
|
|
||||||
// not mandatory or its the login or login error page don't authenticate
|
// not mandatory or its the login or login error page don't authenticate
|
||||||
if (!mandatory || isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo()))) return AuthStatus.SUCCESS;
|
if (!mandatory || isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo()))) return AuthStatus.SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue