SecurityToken token = handler.getSecurityTokenFromRequest(req); if (token != null) { AuthInfoUtil.setAuthTypeForRequest(req, handler.getName()); AuthInfoUtil.setSecurityTokenForRequest(req, token); callChain(chain, req, resp);
SecurityToken token = handler.getSecurityTokenFromRequest(req); if (token != null) { AuthInfoUtil.setAuthTypeForRequest(req, handler.getName()); AuthInfoUtil.setSecurityTokenForRequest(req, token); callChain(chain, req, resp);
SecurityToken token = handler.getSecurityTokenFromRequest(req); if (token != null) { AuthInfoUtil.setAuthTypeForRequest(req, handler.getName()); AuthInfoUtil.setSecurityTokenForRequest(req, token); callChain(chain, req, resp);
@Test public void testAuthType() throws Exception { HttpServletRequest req = new FakeHttpServletRequest(); AuthInfoUtil.setAuthTypeForRequest(req, "FakeAuth"); assertEquals("FakeAuth", AuthInfoUtil.getAuthTypeFromRequest(req)); } }
@Test public void testAuthType() throws Exception { HttpServletRequest req = new FakeHttpServletRequest(); AuthInfoUtil.setAuthTypeForRequest(req, "FakeAuth"); assertEquals("FakeAuth", AuthInfoUtil.getAuthTypeFromRequest(req)); } }
@Test public void testAuthType() throws Exception { HttpServletRequest req = new FakeHttpServletRequest(); AuthInfoUtil.setAuthTypeForRequest(req, "FakeAuth"); assertEquals("FakeAuth", AuthInfoUtil.getAuthTypeFromRequest(req)); } }