@Test public void testWithoutGrantingTicket() throws Exception { assertThat(handler.onProxyCallback(IOU_VALUE), hasProperty("status", is(200))); }
@Override public ProxyCallbackResponse onProxyCallback(String query) { String pgtIou = QueryUtil.findParameter(PGT_IOU_PARAM, query); String pgt = QueryUtil.findParameter(PGT_PARAM, query); boolean ok = !CommonUtils.isBlank(pgtIou) && !CommonUtils.isBlank(pgt); if (!ok) { LOGGER.debug("proxy callback missing required parameters: query='" + query + "'"); return new ProxyCallbackResponse(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("proxy callback for IOU " + pgtIou); } storage.save(pgtIou, pgt); return new ProxyCallbackResponse(); }
JasigProxyCallbackHandler implements ProxyCallbackHandler { @Override public ProxyCallbackResponse onProxyCallback(String query) { String pgtIou = QueryUtil.findParameter(PGT_IOU_PARAM, query); String pgt = QueryUtil.findParameter(PGT_PARAM, query); boolean ok = !CommonUtils.isBlank(pgtIou) && !CommonUtils.isBlank(pgt); if (!ok) { LOGGER.debug("proxy callback missing required parameters: query='" + query + "'"); return new ProxyCallbackResponse(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("proxy callback for IOU " + pgtIou); } storage.save(pgtIou, pgt); return new ProxyCallbackResponse(); } }
JasigProxyCallbackHandler implements ProxyCallbackHandler { @Override public ProxyCallbackResponse onProxyCallback(String query) { String pgtIou = QueryUtil.findParameter(PGT_IOU_PARAM, query); String pgt = QueryUtil.findParameter(PGT_PARAM, query); boolean ok = !CommonUtils.isBlank(pgtIou) && !CommonUtils.isBlank(pgt); if (!ok) { LOGGER.debug("proxy callback missing required parameters: query='" + query + "'"); return new ProxyCallbackResponse(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("proxy callback for IOU " + pgtIou); } storage.save(pgtIou, pgt); return new ProxyCallbackResponse(); }  }
JasigProxyCallbackHandler implements ProxyCallbackHandler { @Override public ProxyCallbackResponse onProxyCallback(String query) { String pgtIou = QueryUtil.findParameter(PGT_IOU_PARAM, query); String pgt = QueryUtil.findParameter(PGT_PARAM, query); boolean ok = !CommonUtils.isBlank(pgtIou) && !CommonUtils.isBlank(pgt); if (!ok) { LOGGER.debug("proxy callback missing required parameters: query='" + query + "'"); return new ProxyCallbackResponse(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("proxy callback for IOU " + pgtIou); } storage.save(pgtIou, pgt); return new ProxyCallbackResponse(); }  @Override ProxyCallbackResponse onProxyCallback(String query); @Override Object getStorage(); }
JasigProxyCallbackHandler implements ProxyCallbackHandler { @Override public ProxyCallbackResponse onProxyCallback(String query) { String pgtIou = QueryUtil.findParameter(PGT_IOU_PARAM, query); String pgt = QueryUtil.findParameter(PGT_PARAM, query); boolean ok = !CommonUtils.isBlank(pgtIou) && !CommonUtils.isBlank(pgt); if (!ok) { LOGGER.debug("proxy callback missing required parameters: query='" + query + "'"); return new ProxyCallbackResponse(); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("proxy callback for IOU " + pgtIou); } storage.save(pgtIou, pgt); return new ProxyCallbackResponse(); }  @Override ProxyCallbackResponse onProxyCallback(String query); @Override Object getStorage();  }